pkgsrc/net/pppd/patches/patch-as
cube 3e86158156 Initial import of pppd, version 2.4.3, into the NetBSD Package Collection.
The PPP Daemon is the userland part of the Point-to-Point Protocol.  It works
in combination with a dedicated kernel network interface usually named ppp.
PPP is a very extensible protocol and pppd supports a large number of options,
including compression (through various algorithms), cryptography (Microsoft's
MPPE) and authentication (PAP, CHAP, Microsoft CHAP), provided the kernel has
the relevant back-ends in some cases.
2005-01-02 02:51:40 +00:00

30 lines
841 B
Text

$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);
}