From bb92478eb0029677305d4edb989380a58259709a Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 24 Jun 1999 00:17:18 +0000 Subject: [PATCH] fix silly = vs == thing --- pppd/sys-osf.c | 4 ++-- pppd/sys-sunos4.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"); } -- 2.39.2