From 4cd9543226d7e492b632ffc375d4b43ac46a168c Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 12 Dec 2023 23:59:20 +0100 Subject: Renamed var --- FICS/ficsmain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FICS/ficsmain.c') diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index 4893262..ddc8b70 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -101,13 +101,13 @@ PRIVATE void main_event_loop(void) { char command_string[MAX_STRING_LENGTH]; - int current_socket; + int sockfd; while (1) { ngc2(command_string, HEARTBEATTIME); - if (process_heartbeat(¤t_socket) == COM_LOGOUT) { - process_disconnection(current_socket); - net_close_connection(current_socket); + if (process_heartbeat(&sockfd) == COM_LOGOUT) { + process_disconnection(sockfd); + net_close_connection(sockfd); } } } -- cgit v1.2.3