diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-06-18 19:51:39 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-06-18 19:51:39 +0000 |
commit | 3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b (patch) | |
tree | e629f2ba436ab8a1062638eb1e3176696abfd1f6 /driver.c | |
parent | 8f3f473c829e8691ef5566d73f3f130b492e36ba (diff) | |
download | fetchmail-3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b.tar.gz fetchmail-3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b.tar.bz2 fetchmail-3c25e877da7ba4a11e0c9bd5f65f8857cb8f272b.zip |
Fix various compiler warnings.
svn path=/trunk/; revision=3899
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -815,24 +815,25 @@ flagthemail: return(PS_SUCCESS); } -static int do_session(ctl, proto, maxfetch) /* retrieve messages from server using given protocol method table */ -struct query *ctl; /* parsed options with merged-in defaults */ -const struct method *proto; /* protocol method table */ -const int maxfetch; /* maximum number of messages to fetch */ +static int do_session( + /* parsed options with merged-in defaults */ + struct query *ctl, + /* protocol method table */ + const struct method *proto, + /* maximum number of messages to fetch */ + const int maxfetch) { - int js; -#ifdef HAVE_VOLATILE + static int *msgsizes; volatile int err, mailserver_socket = -1; /* pacifies -Wall */ -#else - int err, mailserver_socket = -1; -#endif /* HAVE_VOLATILE */ + int deletions = 0, js; const char *msg; SIGHANDLERTYPE pipesave; SIGHANDLERTYPE alrmsave; ctl->server.base_protocol = proto; + msgsizes = NULL; pass = 0; err = 0; init_transact(proto); @@ -924,8 +925,7 @@ const int maxfetch; /* maximum number of messages to fetch */ else { char buf[MSGBUFSIZE+1], *realhost; - int count, new, bytes, deletions = 0; - int *msgsizes = (int *)NULL; + int count, new, bytes; #if INET6_ENABLE int fetches, dispatches, oldphase; #else /* INET6_ENABLE */ |