Fix VS warning that should be an error!

This commit is contained in:
Nick Westgate 2015-02-08 08:47:42 +00:00
parent 383f658123
commit 514a316566
1 changed files with 2 additions and 1 deletions

View File

@ -89,6 +89,7 @@ scc_socket_close_handle(SOCKET sockfd)
return close(sockfd);
#endif
}
return 0;
}
void
@ -329,7 +330,7 @@ scc_socket_close(int port, int full_close, double dcycs)
printf("In scc_socket_close, %d, %d, %f\n", port, full_close, dcycs);
rdwrfd = scc_ptr->rdwrfd;
if(rdwrfd >= 0) {
if(rdwrfd != -1) {
printf("socket_close: rdwrfd=%d, closing\n", rdwrfd);
scc_socket_close_handle(rdwrfd);
}