summaryrefslogtreecommitdiffstats
path: root/usr.bin/getconf/limits.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/limits.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/limits.gperf')
-rw-r--r--usr.bin/getconf/limits.gperf4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/getconf/limits.gperf b/usr.bin/getconf/limits.gperf
index bb8ef0d..68e0d65 100644
--- a/usr.bin/getconf/limits.gperf
+++ b/usr.bin/getconf/limits.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);
%}
struct map { const char *name; intmax_t value; int valid; };
@@ -106,7 +106,7 @@ find_limit(const char *name, intmax_t *value)
{
const struct map *rv;
- rv = in_word_set(name, strlen(name));
+ rv = in_word_set(name);
if (rv != NULL) {
if (rv->valid) {
*value = rv->value;
OpenPOWER on IntegriCloud