From 684e6cbcbc96eb06344a597e3db44b8fe1e9ccd3 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Tue, 26 Sep 2023 03:00:57 -0400 Subject: small typo fixes --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index 22ab353..1dd1a3e 100644 --- a/server.c +++ b/server.c @@ -171,7 +171,7 @@ main(int argc, char *argv[]) // no int here for good luck :) pthread_create(&select_thread, NULL, select_routine, (void *) &listenerfd); // BELOW IS FOR THE COMMAND LINE INTERFACE - // -------------------------------------------------------------------------------------------------s + // -------------------------------------------------------------------------------------------------- // command line data structures char input[COMMAND_LINE_MAX]; memset(input, 0, COMMAND_LINE_MAX); @@ -195,8 +195,8 @@ main(int argc, char *argv[]) // no int here for good luck :) // if "q" command: shutdown & close tcp sockets! if (!strcmp(command, "q")) { printf("Exiting.\n"); - cleanup_readfds_and_sockets(); close(listenerfd); + cleanup_readfds_and_sockets(); break; } -- cgit v1.2.3-70-g09d2