From: Paul Mackerras Date: Thu, 24 Jun 1999 00:17:18 +0000 (+0000) Subject: fix silly = vs == thing X-Git-Tag: ppp-2.4.7~690 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=bb92478eb0029677305d4edb989380a58259709a fix silly = vs == thing --- diff --git a/pppd/sys-osf.c b/pppd/sys-osf.c index 6d882a9..0bc26de 100644 --- a/pppd/sys-osf.c +++ b/pppd/sys-osf.c @@ -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 char rcsid[] = "$Id: sys-osf.c,v 1.28 1999/06/24 00:17:18 paulus Exp $"; #endif #include @@ -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"); } diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index 3e8d1ce..558e2f9 100644 --- a/pppd/sys-sunos4.c +++ b/pppd/sys-sunos4.c @@ -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 char rcsid[] = "$Id: sys-sunos4.c,v 1.22 1999/06/24 00:17:18 paulus Exp $"; #endif #include @@ -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"); }