summaryrefslogtreecommitdiffstats
path: root/usr.bin/getconf/progenv.gperf
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-08-22 17:32:07 +0000
committermarkm <markm@FreeBSD.org>2003-08-22 17:32:07 +0000
commit39e9b9e98923adef2448e1ac49af7bd905d2d72f (patch)
tree1eb050875892779ca4712d66dce6d99317516b72 /usr.bin/getconf/progenv.gperf
parent0ab867f1c2e75dea5b91d280648a2d35e96cddec (diff)
downloadFreeBSD-src-39e9b9e98923adef2448e1ac49af7bd905d2d72f.zip
FreeBSD-src-39e9b9e98923adef2448e1ac49af7bd905d2d72f.tar.gz
Warns fixes. Mainly unused headers/params/vars removal, but also
some malloc cleanup.
Diffstat (limited to 'usr.bin/getconf/progenv.gperf')
-rw-r--r--usr.bin/getconf/progenv.gperf4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/getconf/progenv.gperf b/usr.bin/getconf/progenv.gperf
index 64c9b4c..cfbde66 100644
--- a/usr.bin/getconf/progenv.gperf
+++ b/usr.bin/getconf/progenv.gperf
@@ -15,7 +15,7 @@
/*
* Override gperf's built-in external scope.
*/
-static const struct map *in_word_set(const char *str, unsigned int len);
+static const struct map *in_word_set(const char *str);
/*
* The Standard seems a bit ambiguous over whether the POSIX_V6_*
@@ -55,7 +55,7 @@ find_progenv(const char *name, const char **alt_path)
{
const struct map *rv;
- rv = in_word_set(name, strlen(name));
+ rv = in_word_set(name);
if (rv != NULL) {
if (rv->valid) {
*alt_path = rv->alt_path;
OpenPOWER on IntegriCloud