From 334cb452bfee4d0511f9591292903d01f58efaf9 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 20 Oct 2004 09:14:04 +0000 Subject: Fix miscellaneous warnings. svn path=/trunk/; revision=3953 --- fetchmail.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index de5215a9..1756c73f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -116,7 +116,6 @@ static char *timestamp (void) static RETSIGTYPE donothing(int sig) { - extern volatile int lastsig; /* declared in idle.c */ set_signal_handler(sig, donothing); lastsig = sig; } @@ -124,7 +123,7 @@ static RETSIGTYPE donothing(int sig) int main(int argc, char **argv) { int bkgd = FALSE; - int parsestatus, implicitmode = FALSE; + int implicitmode = FALSE; struct query *ctl; netrc_entry *netrc_list; char *netrc_file, *tmpbuf; @@ -180,7 +179,7 @@ int main(int argc, char **argv) } #endif - if ((parsestatus = parsecmdline(argc,argv, &cmd_run, &cmd_opts)) < 0) + if ((parsecmdline(argc,argv, &cmd_run, &cmd_opts)) < 0) exit(PS_SYNTAX); if (versioninfo) @@ -461,10 +460,8 @@ int main(int argc, char **argv) GT_("fetchmail: can't find a password for %s@%s.\n"), ctl->remotename, ctl->server.pollname); return(PS_AUTHFAIL); - } - else - { - char* password_prompt = GT_("Enter password for %s@%s: "); + } else { + const char* password_prompt = GT_("Enter password for %s@%s: "); xalloca(tmpbuf, char *, strlen(password_prompt) + strlen(ctl->remotename) + -- cgit v1.2.3