diff options
author | brian <brian@FreeBSD.org> | 2004-09-05 01:46:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2004-09-05 01:46:52 +0000 |
commit | 6f864d0a973a7f3987d73132be311b7cfbd1ccfc (patch) | |
tree | fb5af1860e245ef67196527d9ba46e5c9e284bf6 /usr.sbin/ppp/main.c | |
parent | 2f8e87b45e5735ee9774fce8bc8ffaf1fdc72657 (diff) | |
download | FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.zip FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.tar.gz |
Make ppp WARNS=5 clean
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 7517663..6f68b7f 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -109,7 +109,7 @@ static struct bundle *SignalBundle; static struct prompt *SignalPrompt; void -Cleanup(int excode) +Cleanup() { SignalBundle->CleaningUp = 1; bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN); @@ -143,7 +143,7 @@ static void CloseSession(int signo) { log_Printf(LogPHASE, "Signal %d, terminate.\n", signo); - Cleanup(EX_TERM); + Cleanup(); } static pid_t BGPid = 0; @@ -157,14 +157,14 @@ KillChild(int signo) } static void -TerminalCont(int signo) +TerminalCont(int signo __unused) { signal(SIGCONT, SIG_DFL); prompt_Continue(SignalPrompt); } static void -TerminalStop(int signo) +TerminalStop(int signo __unused) { prompt_Suspend(SignalPrompt); signal(SIGCONT, TerminalCont); @@ -172,7 +172,7 @@ TerminalStop(int signo) } static void -BringDownServer(int signo) +BringDownServer(int signo __unused) { /* Drops all child prompts too ! */ if (server_Close(SignalBundle)) @@ -180,7 +180,7 @@ BringDownServer(int signo) } static void -RestartServer(int signo) +RestartServer(int signo __unused) { /* Drops all child prompts and re-opens the socket */ server_Reopen(SignalBundle); @@ -302,7 +302,8 @@ main(int argc, char **argv) { char *name; const char *lastlabel; - int arg, f, holdfd[3], label; + int arg, holdfd[3], label; + unsigned f; struct bundle *bundle; struct prompt *prompt; struct switches sw; |