X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-sunos4.c;h=19c233ff7e3f6d8a21020e1a08b8d0e6e5f91cc4;hb=07de73a331240b97d915c1851431a743449dd0f4;hp=3e8d1ce7f303971ad80309560c0942e87109f6ab;hpb=0429f850053952414c2a280dad902363965a7a3a;p=ppp.git diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index 3e8d1ce..19c233f 100644 --- a/pppd/sys-sunos4.c +++ b/pppd/sys-sunos4.c @@ -25,9 +25,7 @@ * OR MODIFICATIONS. */ -#ifndef lint -static char rcsid[] = "$Id: sys-sunos4.c,v 1.21 1999/05/12 06:15:58 paulus Exp $"; -#endif +#define RCSID "$Id: sys-sunos4.c,v 1.24 1999/08/13 06:46:19 paulus Exp $" #include #include @@ -67,6 +65,8 @@ extern void *alloca(); #endif #endif /*sparc*/ +static const char rcsid[] = RCSID; + static int pppfd; static int fdmuxid = -1; static int iffd; @@ -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"); }