suppress warning of unclosed fd

This commit is contained in:
Frank Morgner
2015-01-25 03:50:50 +01:00
parent 94dbdd5405
commit f03760e27e

View File

@@ -59,7 +59,7 @@ err:
#endif #endif
if (!ip) if (!ip)
printf("%s: %s\n" , ERROR_STRING, strerror(errno)); printf("%s: %s\n" , ERROR_STRING, strerror(errno));
if (sock > 0) if (sock >= 0)
close(sock); close(sock);
return ip; return ip;