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) {