From 836bbce0c428581f40d13d8c3d27d1c7adc31ccb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 26 Oct 1998 19:57:45 +0000 Subject: Jonathan T. Agnew's massive code cleanup. svn path=/trunk/; revision=2137 --- options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'options.c') diff --git a/options.c b/options.c index da8df81c..bd7998bc 100644 --- a/options.c +++ b/options.c @@ -64,7 +64,7 @@ #define LA_CONFIGDUMP 42 #define LA_YYDEBUG 43 -/* options still left: CgGhHjJoORwWxXYz */ +/* options still left: CDgGhHjJoORwWxXYz */ static const char *shortoptions = "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:Z:b:B:e:m:T:I:M:yw:"; @@ -288,7 +288,9 @@ struct query *ctl; /* option record to be initialized */ case 'p': case LA_PROTOCOL: /* XXX -- should probably use a table lookup here */ - if (strcasecmp(optarg,"pop2") == 0) + if (strcasecmp(optarg,"auto") == 0) + ctl->server.protocol = P_AUTO; + else if (strcasecmp(optarg,"pop2") == 0) ctl->server.protocol = P_POP2; #ifdef SDPS_ENABLE else if (strcasecmp(optarg,"sdps") == 0) -- cgit v1.2.3