X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Futils.c;h=0b1292d29df1f1fd258df1fefaea66c79c264ab3;hb=0429f850053952414c2a280dad902363965a7a3a;hp=7c42ce6290ec3590cd3cd3a73ac0c18581eee235;hpb=d734c01949a1b0bb3096fc71a4923ad59c58a86e;p=ppp.git diff --git a/pppd/utils.c b/pppd/utils.c index 7c42ce6..0b1292d 100644 --- a/pppd/utils.c +++ b/pppd/utils.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef lint -static char rcsid[] = "$Id: utils.c,v 1.2 1999/04/16 11:34:27 paulus Exp $"; +static char rcsid[] = "$Id: utils.c,v 1.4 1999/05/12 06:15:33 paulus Exp $"; #endif #include @@ -40,9 +40,16 @@ static char rcsid[] = "$Id: utils.c,v 1.2 1999/04/16 11:34:27 paulus Exp $"; #include #include #include +#ifdef SVR4 +#include +#endif #include "pppd.h" +#if defined(SUNOS4) +extern char *strerror(); +#endif + static void pr_log __P((void *, char *, ...)); static void logit __P((int, char *, va_list)); static void vslp_printer __P((void *, char *, ...)); @@ -698,7 +705,8 @@ static char lock_file[MAXPATHLEN]; * lock - create a lock file for the named device */ int -lock(char *dev) +lock(dev) + char *dev; { #ifdef LOCKLIB int result; @@ -815,7 +823,8 @@ lock(char *dev) * between when the parent died and the child rewrote the lockfile). */ int -relock(int pid) +relock(pid) + int pid; { #ifdef LOCKLIB /* XXX is there a way to do this? */