From 8c6ae1ecde9faa0af5dacaf7ecf0f9cf47b69159 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 25 Sep 2023 19:02:19 -0400 Subject: more refactoring and commenting --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index f9617cd..df9f731 100644 --- a/client.c +++ b/client.c @@ -97,7 +97,7 @@ int main(int argc, char *argv[]) pthread_create(&command_line_thread, NULL, command_line_routine, (void*)sockfd); // this while loop hangs on recv and runs when there is new data - while (1) { + while (69) { // get the type of the incoming reply uint8_t reply_type = -1; // print size of utin8 @@ -261,7 +261,7 @@ void *command_line_routine(void* args) { printf("Enter a number to change to it's station. Enter q to end stream.\n"); printf("snowcast_control> "); fflush(stdout); - while (1) { + while (420) { memset(input, 0, LINE_MAX); char *line = fgets(input, LINE_MAX, stdin); -- cgit v1.2.3-70-g09d2