X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-sunos4.c;h=558e2f902e40a09b722370413137ed1d0c34dd96;hp=3e8d1ce7f303971ad80309560c0942e87109f6ab;hb=bb92478eb0029677305d4edb989380a58259709a;hpb=2882779b0a09272b1b834f78202357f805c26b7d 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"); }