$NetBSD: patch-as,v 1.1.1.1 2005/01/02 02:51:42 cube Exp $ --- pppd/main.c.orig 2004-11-13 13:05:48.000000000 +0100 +++ pppd/main.c @@ -232,6 +232,7 @@ static void create_pidfile __P((int pid) static void create_linkpidfile __P((int pid)); static void cleanup __P((void)); static void get_input __P((void)); +static const char *protocol_name __P((int)); static void calltimeout __P((void)); static struct timeval *timeleft __P((struct timeval *)); static void kill_my_pg __P((int)); @@ -933,7 +934,7 @@ struct protocol_list { /* * protocol_name - find a name for a PPP protocol. */ -const char * +static const char * protocol_name(proto) int proto; { @@ -1660,7 +1661,7 @@ run_program(prog, args, must_exist, done syslog(LOG_ERR, "Can't execute %s: %m", prog); closelog(); } - _exit(-1); + _exit(1); }