From: Danny Mayer Date: Thu, 22 Jan 2004 00:35:11 +0000 (-0500) Subject: eliminate no error select reporting X-Git-Tag: NTP_4_2_3~174^2~33^2~3^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a241ecc05b6fa2cbe0530b4eb1db6e8fefc2d28f;p=thirdparty%2Fntp.git eliminate no error select reporting bk: 400f1abfhjOK2eUPgRsnnx0ckNl_JA --- diff --git a/ntpdate/ntpdate.c b/ntpdate/ntpdate.c index 35ac1fa66d..4c61acce63 100644 --- a/ntpdate/ntpdate.c +++ b/ntpdate/ntpdate.c @@ -599,16 +599,13 @@ ntpdatemain ( #endif if (nfound > 0) input_handler(); - else if ( #ifndef SYS_WINNT - nfound == -1 + else if (nfound == -1) #else - nfound == SOCKET_ERROR + else if (nfound == SOCKET_ERROR) #endif /* SYS_WINNT */ - ) { -#ifndef SYS_WINNT + { if (errno != EINTR) -#endif netsyslog(LOG_ERR, #ifdef HAVE_POLL_H "poll() error: %m" @@ -616,7 +613,7 @@ ntpdatemain ( "select() error: %m" #endif ); - } else { + } else if (errno != 0) { #ifndef SYS_VXWORKS netsyslog(LOG_DEBUG, #ifdef HAVE_POLL_H