aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
commit05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 (patch)
tree898185b02c06b47450c88fc8731cf508c056568d /driver.c
parente9c99cb0a353ed18bd7c6ea6e93ec2fea326bbb4 (diff)
downloadfetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.gz
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.bz2
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.zip
Fix lots of warnings, most around string literals...
...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements.
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index 7785b89c..32cfffb1 100644
--- a/driver.c
+++ b/driver.c
@@ -492,10 +492,13 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
/* check if the message is old
* Note: the size of the message may not be known here */
- if (ctl->fetchall || force_retrieval)
- ;
- else if (ctl->server.base_protocol->is_old && (ctl->server.base_protocol->is_old)(mailserver_socket,ctl,num))
- msgcode = MSGLEN_OLD;
+ if (ctl->fetchall || force_retrieval) {
+ /* empty */
+ } else {
+ if (ctl->server.base_protocol->is_old && (ctl->server.base_protocol->is_old)(mailserver_socket,ctl,num)) {
+ msgcode = MSGLEN_OLD;
+ }
+ }
if (msgcode == MSGLEN_OLD)
{
/* To avoid flooding the syslog when using --keep,