From 0700c82ab1b0a12841c4eb4122dbe76d8c74d2be Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 2 Jun 2010 20:50:26 +0200 Subject: =?UTF-8?q?*=20README:=20Correct=20number=20of=20debug=20levels.?= =?UTF-8?q?=20*=20radsecproxy.c=20(getmainconfig):=20Take=20new=20log=20le?= =?UTF-8?q?vel=20into=20account.=20(getargs):=20Ditto.=20Patch=20by=20Kolb?= =?UTF-8?q?j=C3=B8rn=20Barmen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- radsecproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 5e50b96..2276d40 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3061,7 +3061,7 @@ void getmainconfig(const char *configfile) { debugx(1, DBG_ERR, "configuration error"); if (loglevel != LONG_MIN) { - if (loglevel < 1 || loglevel > 4) + if (loglevel < 1 || loglevel > 5) debugx(1, DBG_ERR, "error in %s, value of option LogLevel is %d, must be 1, 2, 3, 4 or 5", configfile, loglevel); options.loglevel = (uint8_t)loglevel; } @@ -3087,7 +3087,7 @@ void getargs(int argc, char **argv, uint8_t *foreground, uint8_t *pretend, uint8 *configfile = optarg; break; case 'd': - if (strlen(optarg) != 1 || *optarg < '1' || *optarg > '4') + if (strlen(optarg) != 1 || *optarg < '1' || *optarg > '5') debugx(1, DBG_ERR, "Debug level must be 1, 2, 3, 4 or 5, not %s", optarg); *loglevel = *optarg - '0'; break; -- cgit v1.1