aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/client.c b/client.c
index cb524cf..1acd3ae 100644
--- a/client.c
+++ b/client.c
@@ -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;