diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-12-14 21:27:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-12-14 21:27:50 +0000 |
commit | b877a3f40400be9035d96b855b94c73a6f92c779 (patch) | |
tree | ca53d5783774ad4cbfdfcc4ca9f7692526071ad6 /fetchmail.c | |
parent | f191f75af5ce76ce9ed72224bc3585ba9a39a73e (diff) | |
download | fetchmail-b877a3f40400be9035d96b855b94c73a6f92c779.tar.gz fetchmail-b877a3f40400be9035d96b855b94c73a6f92c779.tar.bz2 fetchmail-b877a3f40400be9035d96b855b94c73a6f92c779.zip |
Cleanup of numeric option handling.
svn path=/trunk/; revision=1568
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c index 84f51f6a..b620467a 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -983,22 +983,22 @@ void dump_params (struct query *ctl) printf(" Nonempty Status lines will be %s (dropstatus %s)\n", ctl->dropstatus ? "discarded" : "kept", ctl->dropstatus ? "on" : "off"); - if (ctl->limit > 0) + if (NUM_NONZERO(ctl->limit)) 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 > 0) + if (NUM_NONZERO(ctl->fetchlimit)) 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 > 0) + if (NUM_NONZERO(ctl->batchlimit)) printf(" SMTP message batch limit is %d.\n", ctl->batchlimit); else if (outlevel == O_VERBOSE) printf(" No SMTP message batch limit (--batchlimit 0).\n"); if (ctl->server.protocol == P_IMAP) - if (ctl->expunge > 0) + if (NUM_NONZERO(ctl->expunge)) printf(" Deletion interval between expunges is %d (--expunge %d).\n", ctl->expunge, ctl->expunge); else if (outlevel == O_VERBOSE) printf(" No expunges (--expunge 0).\n"); |