summaryrefslogtreecommitdiff
path: root/net/pppd/patches/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'net/pppd/patches/patch-as')
-rw-r--r--net/pppd/patches/patch-as30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/pppd/patches/patch-as b/net/pppd/patches/patch-as
new file mode 100644
index 00000000000..e0fc8ba8f1b
--- /dev/null
+++ b/net/pppd/patches/patch-as
@@ -0,0 +1,30 @@
+$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);
+ }
+
+