From 48cdb95aa2444a386a911be1a8251483d79a9935 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 10 Apr 2003 16:20:38 +0000 Subject: 2003-04-10 Joel Sherrill PR 371/pppd * pppd/auth.c, pppd/chat.c, pppd/demand.c, pppd/fsm.c, pppd/lcp.c, pppd/options.c, pppd/pppd.h, pppd/rtemsmain.c, pppd/rtemspppd.c: Change many symbols to static. There are still global symbols in rtemspppd.h which might need to be changed or converted into member of a structure which is dereferenced with a pointer that is managed as a per task variable. But this patch should avoid many conflicts. --- c/src/libnetworking/pppd/chat.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'c/src/libnetworking/pppd/chat.c') diff --git a/c/src/libnetworking/pppd/chat.c b/c/src/libnetworking/pppd/chat.c index 74be1b06f0..d40e3b2e46 100644 --- a/c/src/libnetworking/pppd/chat.c +++ b/c/src/libnetworking/pppd/chat.c @@ -140,22 +140,17 @@ static int _O = 0; /* Internal state */ #endif /*************** Micro getopt() *********************************************/ -char *program_name; - #define MAX_ABORTS 16 #define MAX_REPORTS 16 #define DEFAULT_CHAT_TIMEOUT 45 #define MAX_TIMEOUTS 10 -int echo = 0; -int quiet = 0; -int report = 0; -int use_env = 0; -int exit_code = 0; -char *report_file = (char *) 0; -char *chat_file = (char *) 0; -char *phone_num = (char *) 0; -char *phone_num2 = (char *) 0; +static int echo = 0; +static int quiet = 0; +static int use_env = 0; +static int exit_code = 0; +static char *phone_num = (char *) 0; +static char *phone_num2 = (char *) 0; static int ttyfd; static int timeout = DEFAULT_CHAT_TIMEOUT; -- cgit v1.2.3