From 6f864d0a973a7f3987d73132be311b7cfbd1ccfc Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 5 Sep 2004 01:46:52 +0000 Subject: Make ppp WARNS=5 clean --- usr.sbin/ppp/main.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'usr.sbin/ppp/main.c') 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; -- cgit v1.1