aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/network.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-23 17:07:00 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-23 17:13:07 +0100
commit7d1f30fbdff85a00ef3c04fac9e33e5d99bbc70c (patch)
treefb3cbdedd47878e5f99f3cfcaeb136234ad72f9e /FICS/network.c
parentae3881df2030508d8f3cc447312013bd31b9f963 (diff)
Fixed dead assignment
Diffstat (limited to 'FICS/network.c')
-rw-r--r--FICS/network.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/FICS/network.c b/FICS/network.c
index 28f4408..29c0041 100644
--- a/FICS/network.c
+++ b/FICS/network.c
@@ -107,9 +107,7 @@ net_addConnection(int fd, unsigned int fromHost)
PRIVATE int
remConnection(int fd)
{
- int which;
-
- if ((which = findConnection(fd)) < 0)
+ if (findConnection(fd) < 0)
return -1;
numConnections--;