From acba6096e783dacf2dece38fbb625e403c91392b Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 26 Sep 1996 06:23:34 +0000 Subject: [PATCH] avoid compiler warning --- pppd/sys-sunos4.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index 2097c8a..32fe8d5 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.5 1996/05/27 00:00:56 paulus Exp $"; +static char rcsid[] = "$Id: sys-sunos4.c,v 1.6 1996/09/26 06:23:34 paulus Exp $"; #endif #include @@ -63,6 +63,9 @@ static char rcsid[] = "$Id: sys-sunos4.c,v 1.5 1996/05/27 00:00:56 paulus Exp $" #if defined(sun) && defined(sparc) #include +#ifndef __GNUC__ +extern void *alloca(); +#endif #endif /*sparc*/ static int pppfd; @@ -948,7 +951,7 @@ sifnpmode(u, proto, mode) npi[0] = proto; npi[1] = (int) mode; - if (strioctl(pppfd, PPPIO_NPMODE, &npi, 2 * sizeof(int), 0) < 0) { + if (strioctl(pppfd, PPPIO_NPMODE, npi, 2 * sizeof(int), 0) < 0) { syslog(LOG_ERR, "ioctl(set NP %d mode to %d): %m", proto, mode); return 0; } -- 2.39.2