fix: correct typos and improve comments across multiple files by codespell (#4116)

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2025-03-07 08:21:54 +08:00
committed by GitHub
parent 73998e4c85
commit 412631ac13
108 changed files with 215 additions and 215 deletions

View File

@ -37,7 +37,7 @@ run(void *arg)
}
}
printf("[Server] Shuting down the new connection #%u ..\n", new_socket);
printf("[Server] Shutting down the new connection #%u ..\n", new_socket);
shutdown(new_socket, SHUT_RDWR);
return NULL;
@ -137,14 +137,14 @@ main(int argc, char *argv[])
pthread_join(workers[i], NULL);
}
printf("[Server] Shuting down ..\n");
printf("[Server] Shutting down ..\n");
shutdown(socket_fd, SHUT_RDWR);
sleep(3);
printf("[Server] BYE \n");
return EXIT_SUCCESS;
fail:
printf("[Server] Shuting down ..\n");
printf("[Server] Shutting down ..\n");
if (socket_fd >= 0)
close(socket_fd);
sleep(3);