From 6ed8bef65e54efdb98841ef9b6eb3ea3c9be82d5 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 18 Sep 2023 02:34:12 -0400 Subject: big progress on streaming in sync and controlling multiple users --- client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client.c') 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; -- cgit v1.2.3-70-g09d2