]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-sunos4.c
make /dev/ppp if necessary
[ppp.git] / pppd / sys-sunos4.c
index 3e8d1ce7f303971ad80309560c0942e87109f6ab..551401d35f252f8a7cf0c57147564833daeea02a 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-sunos4.c,v 1.21 1999/05/12 06:15:58 paulus Exp $";
+static const char rcsid[] = "$Id: sys-sunos4.c,v 1.23 1999/08/12 04:25:24 paulus Exp $";
 #endif
 
 #include <stdio.h>
@@ -703,7 +703,7 @@ read_packet(buf)
        flags = 0;
        len = getmsg(pppfd, &ctrl, &data, &flags);
        if (len < 0) {
-           if (errno = EAGAIN || errno == EINTR)
+           if (errno == EAGAIN || errno == EINTR)
                return -1;
            fatal("Error reading packet: %m");
        }