diff options
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -107,7 +107,7 @@ int main(int argc, char *argv[]) char input[LINE_MAX]; printf("Enter a number to change to it's station. Click q to end stream.\n"); - while (1==1) { + while (1) { char *line = fgets(input, LINE_MAX, stdin); if (line == NULL) { @@ -118,7 +118,8 @@ int main(int argc, char *argv[]) break; } else { // convert input to an int - int inputInt = (uint16_t)atoi(input); + int inputInt = atoi(input); + printf("Changing to station %d.\n", inputInt); // send the command to change the station struct SetStation setStation; |