aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-06-11 15:28:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-06-11 15:28:25 +0000
commitd9aa67fa440ae92764078d350aaf46f70ab8ffd7 (patch)
tree8d33f56378ddf956adb67e05436d74d8c99e4243
parentf147c93890870117cff16927ed6c54efbe6c3bc9 (diff)
downloadfetchmail-d9aa67fa440ae92764078d350aaf46f70ab8ffd7.tar.gz
fetchmail-d9aa67fa440ae92764078d350aaf46f70ab8ffd7.tar.bz2
fetchmail-d9aa67fa440ae92764078d350aaf46f70ab8ffd7.zip
Step towards supporting command-line zeroing of numeric options.
svn path=/trunk/; revision=1087
-rw-r--r--fetchmail.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 222b2e84..4e128686 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -917,17 +917,17 @@ void dump_params (struct query *ctl)
printf(" Carriage-return forcing is %sabled (--forcecr %s).\n",
ctl->forcecr ? "en" : "dis",
ctl->forcecr ? "on" : "off");
- if (ctl->limit)
+ if (ctl->limit > 0)
printf(" Message size limit is %d bytes (--limit %d).\n",
ctl->limit, ctl->limit);
else if (outlevel == O_VERBOSE)
printf(" No message size limit (--limit 0).\n");
- if (ctl->fetchlimit)
+ if (ctl->fetchlimit > 0)
printf(" Received-message limit is %d (--fetchlimit %d).\n",
ctl->fetchlimit, ctl->fetchlimit);
else if (outlevel == O_VERBOSE)
printf(" No received-message limit (--fetchlimit 0).\n");
- if (ctl->batchlimit)
+ if (ctl->batchlimit > 0)
printf(" SMTP message batch limit is %d.\n", ctl->batchlimit);
else if (outlevel == O_VERBOSE)
printf(" No SMTP message batch limit.\n");