blob: e0fc8ba8f1b6ea863901ac7218e7a5c9392cc5ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
}
|