aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-09-18 02:34:12 -0400
committersotech117 <michael_foiani@brown.edu>2023-09-18 02:34:12 -0400
commit6ed8bef65e54efdb98841ef9b6eb3ea3c9be82d5 (patch)
tree18569e996f7f2f61de2285ffa54d7854478e132d /client.c
parent9e0994d5a997a5b8c298992f05c94ba1b22a692c (diff)
big progress on streaming in sync and controlling multiple users
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;