X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-sunos4.c;h=551401d35f252f8a7cf0c57147564833daeea02a;hb=1a39a96301b795cda440a54192833c1ae96c7670;hp=3e8d1ce7f303971ad80309560c0942e87109f6ab;hpb=0429f850053952414c2a280dad902363965a7a3a;p=ppp.git diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index 3e8d1ce..551401d 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 const char rcsid[] = "$Id: sys-sunos4.c,v 1.23 1999/08/12 04:25:24 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"); }