]> git.ozlabs.org Git - ppp.git/commitdiff
fix silly = vs == thing
authorPaul Mackerras <paulus@samba.org>
Thu, 24 Jun 1999 00:17:18 +0000 (00:17 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Jun 1999 00:17:18 +0000 (00:17 +0000)
pppd/sys-osf.c
pppd/sys-sunos4.c

index 6d882a95c3af914e9bf105ced7c78d7df019de7a..0bc26deb21d4b8c20c51eca60a65c7236d164d8e 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-osf.c,v 1.27 1999/05/12 06:16:16 paulus Exp $";
+static char rcsid[] = "$Id: sys-osf.c,v 1.28 1999/06/24 00:17:18 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -844,7 +844,7 @@ read_packet(buf)
        flags = 0;
        len = getmsg(pppfd, &ctrl, &data, &flags);
        if (len < 0) {
        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");
        }
                return -1;
            fatal("Error reading packet: %m");
        }
index 3e8d1ce7f303971ad80309560c0942e87109f6ab..558e2f902e40a09b722370413137ed1d0c34dd96 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-sunos4.c,v 1.21 1999/05/12 06:15:58 paulus Exp $";
+static char rcsid[] = "$Id: sys-sunos4.c,v 1.22 1999/06/24 00:17:18 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -703,7 +703,7 @@ read_packet(buf)
        flags = 0;
        len = getmsg(pppfd, &ctrl, &data, &flags);
        if (len < 0) {
        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");
        }
                return -1;
            fatal("Error reading packet: %m");
        }