--- ntpclient-2007-365-orig/ntpclient.c 2008-01-01 12:46:10.000000000 +1030 +++ ntpclient-2007-365/ntpclient.c 2010-09-03 16:44:54.081466206 +0930 @@ -509,14 +509,15 @@ if (errno != EINTR) perror("select"); continue; } - if (to.tv_sec == 0) { - if (probes_sent >= ntpc->probe_count && - ntpc->probe_count != 0) break; - send_packet(usd,ntpc->time_of_send); - ++probes_sent; - to.tv_sec=ntpc->cycle_time; - to.tv_usec=0; - } + + /* to.tv_sec never returns 0 for uClinux, so if-then removed */ + + if (probes_sent >= ntpc->probe_count && + ntpc->probe_count != 0) break; + send_packet(usd,ntpc->time_of_send); + ++probes_sent; + to.tv_sec=ntpc->cycle_time; + to.tv_usec=0; continue; } pack_len=recvfrom(usd,incoming,sizeof_incoming,0,