diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-18 02:34:12 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-18 02:34:12 -0400 |
commit | 6ed8bef65e54efdb98841ef9b6eb3ea3c9be82d5 (patch) | |
tree | 18569e996f7f2f61de2285ffa54d7854478e132d /client.c | |
parent | 9e0994d5a997a5b8c298992f05c94ba1b22a692c (diff) |
big progress on streaming in sync and controlling multiple users
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; |