suppress warning of unclosed fd
This commit is contained in:
@@ -59,7 +59,7 @@ err:
|
||||
#endif
|
||||
if (!ip)
|
||||
printf("%s: %s\n" , ERROR_STRING, strerror(errno));
|
||||
if (sock > 0)
|
||||
if (sock >= 0)
|
||||
close(sock);
|
||||
|
||||
return ip;
|
||||
|
||||
Reference in New Issue
Block a user