diff --git a/src/chat/main/server.c b/src/chat/main/server.c index 1e18763..cec3291 100644 --- a/src/chat/main/server.c +++ b/src/chat/main/server.c @@ -41,7 +41,7 @@ int main(void) printf("Server enabled.\n\n"); - pthread_create(&thread, NULL, why2_accept_thread, &listen); + pthread_create(&thread, NULL, why2_accept_thread, &listen_socket); //TODO: Add getline()