diff options
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 7517663240c9..6f68b7fcea84 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; |