]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-osf.c
kill warning
[ppp.git] / pppd / sys-osf.c
index 6d882a95c3af914e9bf105ced7c78d7df019de7a..a291a27d099cb78016b8fb6c727abf98be77906b 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-osf.c,v 1.27 1999/05/12 06:16:16 paulus Exp $";
+static const char rcsid[] = "$Id: sys-osf.c,v 1.29 1999/08/12 04:25:24 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -844,7 +844,7 @@ read_packet(buf)
        flags = 0;
        len = getmsg(pppfd, &ctrl, &data, &flags);
        if (len < 0) {
-           if (errno = EAGAIN || errno == EWOULDBLOCK || errno == EINTR)
+           if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR)
                return -1;
            fatal("Error reading packet: %m");
        }