diff --git a/include/chat/misc.h b/include/chat/misc.h index 011895f..f10d144 100644 --- a/include/chat/misc.h +++ b/include/chat/misc.h @@ -22,7 +22,6 @@ along with this program. If not, see . void why2_send_socket(char *text, int socket); //send socket.... wtf did you expect char *why2_read_socket(int socket); //read lol void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD -void why2_register_connection(int socket); //ADD SOCKET TO LIST void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS #endif \ No newline at end of file diff --git a/src/chat/misc.c b/src/chat/misc.c index f373471..007a8a4 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -130,7 +130,7 @@ void *why2_communicate_thread(void *arg) { printf("User connected.\t%d\n", *((int*) arg)); - why2_register_connection(*((int*) arg)); //TODO: Remove why2_register_connection if unused + push_to_list(*((int*) arg)); const time_t startTime = time(NULL); char *received = NULL; @@ -185,11 +185,6 @@ char *why2_read_socket(int socket) return content_buffer; } -void why2_register_connection(int socket) -{ - push_to_list(socket); //SEND -} - void *why2_accept_thread(void *socket) { int accepted;