BSD 4_4_Lite2 release
[unix-history] / usr / src / usr.sbin / timed / timedc / cmds.c
index 557f721..4ed209d 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)cmds.c     8.1 (Berkeley) 6/6/93";
+static char sccsid[] = "@(#)cmds.c     8.2 (Berkeley) 3/26/95";
 #endif /* not lint */
 
 #ifdef sgi
 #endif /* not lint */
 
 #ifdef sgi
@@ -113,7 +113,7 @@ daydiff(hostname)
                        i = select(sock+1, &ready, (fd_set *)0,
                                   (fd_set *)0, &tout);
                        if (i < 0) {
                        i = select(sock+1, &ready, (fd_set *)0,
                                   (fd_set *)0, &tout);
                        if (i < 0) {
-                               if (errno = EINTR)
+                               if (errno == EINTR)
                                        continue;
                                perror("select(date read)");
                                return 0;
                                        continue;
                                perror("select(date read)");
                                return 0;