aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/ficsmain.c8
1 files changed, 4 insertions, 4 deletions
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(&current_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);
}
}
}