From 7d1f30fbdff85a00ef3c04fac9e33e5d99bbc70c Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Dec 2023 17:07:00 +0100 Subject: Fixed dead assignment --- FICS/network.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'FICS') 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--; -- cgit v1.2.3