From: Ben Gras Date: Fri, 10 Nov 2006 18:19:38 +0000 (+0000) Subject: Fix warnings (Ingmar Alting) X-Git-Tag: v3.1.3~143 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=03be184bd69958616cd2493118f5a15a2cc3784a;p=minix.git Fix warnings (Ingmar Alting) --- diff --git a/lib/sysutil/env_parse.c b/lib/sysutil/env_parse.c index a7a876e31..ce2768484 100644 --- a/lib/sysutil/env_parse.c +++ b/lib/sysutil/env_parse.c @@ -29,7 +29,7 @@ long min, max; /* minimum and maximum values for the parameter */ char value[EP_BUF_SIZE]; char PUNCT[] = ":,;."; long newpar; - int s, i, radix, r, keylen; + int s, i, radix, r; if ((s=env_get_param(env, value, sizeof(value))) != 0) { if (s == ESRCH) return(EP_UNSET); /* only error allowed */ @@ -85,6 +85,7 @@ long min, max; /* minimum and maximum values for the parameter */ } badenv: env_panic(env); + return -1; } diff --git a/lib/sysutil/env_prefix.c b/lib/sysutil/env_prefix.c index b660255ca..b569f7ddb 100644 --- a/lib/sysutil/env_prefix.c +++ b/lib/sysutil/env_prefix.c @@ -14,8 +14,7 @@ char *prefix; /* prefix to test for */ */ char value[EP_BUF_SIZE]; char punct[] = ":,;."; - int i, s, keylen; - char *val; + int s; size_t n; if ((s = env_get_param(env, value, sizeof(value))) != 0) {