1
0
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:
Mark Pizzolato
2013-04-13 05:25:25 -07:00
parent 6fd3e5f498
commit 34ad155854
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
}