From 1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Jun 1997 16:07:37 +0000 Subject: Put in Dave Holland's feature. svn path=/trunk/; revision=1089 --- options.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'options.c') diff --git a/options.c b/options.c index 0241ca57..ff932f96 100644 --- a/options.c +++ b/options.c @@ -225,6 +225,8 @@ struct query *ctl; /* option record to be initialized */ case 't': case LA_TIMEOUT: ctl->server.timeout = atoi(optarg); + if (ctl->server.timeout == 0) + ctl->server.timeout = -1; break; case 'E': case LA_ENVELOPE: @@ -258,6 +260,8 @@ struct query *ctl; /* option record to be initialized */ case 'l': case LA_LIMIT: ctl->limit = atoi(optarg); + if (ctl->limit == 0) + ctl->limit = -1; break; case 'r': case LA_FOLDER: @@ -281,10 +285,14 @@ struct query *ctl; /* option record to be initialized */ case 'b': case LA_BATCHLIMIT: ctl->batchlimit = atoi(optarg); + if (ctl->batchlimit == 0) + ctl->batchlimit = -1; break; case 'B': case LA_FETCHLIMIT: ctl->fetchlimit = atoi(optarg); + if (ctl->fetchlimit == 0) + ctl->fetchlimit = -1; break; case 'm': case LA_MDA: -- cgit v1.2.3