aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-12 23:59:20 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-12 23:59:20 +0100
commit4cd9543226d7e492b632ffc375d4b43ac46a168c (patch)
tree791f438523842a5d642f32ee556567f7c02570b4 /FICS
parentb99c710d04743b1576189912bd822d14892f775d (diff)
Renamed var
Diffstat (limited to 'FICS')
-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);
}
}
}