mirror of
https://github.com/simh/simh.git
synced 2026-04-15 16:11:13 +00:00
Compiler suggested cleanups
This commit is contained in:
@@ -903,11 +903,12 @@ if (rd)
|
||||
else select ((int) sock + 1, NULL, rw_p, er_p, &tz);
|
||||
if (FD_ISSET (sock, er_p))
|
||||
return -1;
|
||||
if (FD_ISSET (sock, rw_p))
|
||||
if (FD_ISSET (sock, rw_p)) {
|
||||
if (0 == getpeername (sock, (struct sockaddr *)&peername, &peernamesize))
|
||||
return 1;
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user