diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-23 17:07:00 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-23 17:13:07 +0100 |
commit | 7d1f30fbdff85a00ef3c04fac9e33e5d99bbc70c (patch) | |
tree | fb3cbdedd47878e5f99f3cfcaeb136234ad72f9e | |
parent | ae3881df2030508d8f3cc447312013bd31b9f963 (diff) |
Fixed dead assignment
-rw-r--r-- | FICS/network.c | 4 |
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--; |