diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-10 16:20:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-10 16:20:38 +0000 |
commit | 48cdb95aa2444a386a911be1a8251483d79a9935 (patch) | |
tree | b0732fa7f30d87e972ad1a587235cd8789fcde7b /cpukit/pppd/options.c | |
parent | 2003-04-10 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-48cdb95aa2444a386a911be1a8251483d79a9935.tar.bz2 |
2003-04-10 Joel Sherrill <joel@OARcorp.com>
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.
Diffstat (limited to 'cpukit/pppd/options.c')
-rw-r--r-- | cpukit/pppd/options.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/pppd/options.c b/cpukit/pppd/options.c index 00dcf591ba..fb686d94a6 100644 --- a/cpukit/pppd/options.c +++ b/cpukit/pppd/options.c @@ -623,7 +623,7 @@ process_option(opt, argv) if ((opt->flags & OPT_PREPASS) == 0 && prepass) return 1; - if ((opt->flags & OPT_INITONLY) && phase != PHASE_INITIALIZE) { + if ((opt->flags & OPT_INITONLY) && pppd_phase != PHASE_INITIALIZE) { option_error("it's too late to use the %s option", opt->name); return 0; } @@ -777,15 +777,15 @@ add_options(opt) static void usage() { - if (phase == PHASE_INITIALIZE) + if (pppd_phase == PHASE_INITIALIZE) fprintf(stderr, usage_string, VERSION, PATCHLEVEL, IMPLEMENTATION, - progname); + "rtems_pppd"); } /* * option_error - print a message about an error in an option. * The message is logged, and also sent to - * stderr if phase == PHASE_INITIALIZE. + * stderr if pppd_phase == PHASE_INITIALIZE. */ void option_error __V((char *fmt, ...)) @@ -1322,7 +1322,7 @@ setdevname(cp) return -1; } - if (phase != PHASE_INITIALIZE) { + if (pppd_phase != PHASE_INITIALIZE) { option_error("device name cannot be changed after initialization"); return -1; } else if (devnam_fixed) { |