diff options
author | markm <markm@FreeBSD.org> | 2003-08-22 17:32:07 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-08-22 17:32:07 +0000 |
commit | 39e9b9e98923adef2448e1ac49af7bd905d2d72f (patch) | |
tree | 1eb050875892779ca4712d66dce6d99317516b72 /usr.bin/getconf/pathconf.gperf | |
parent | 0ab867f1c2e75dea5b91d280648a2d35e96cddec (diff) | |
download | FreeBSD-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/pathconf.gperf')
-rw-r--r-- | usr.bin/getconf/pathconf.gperf | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/getconf/pathconf.gperf b/usr.bin/getconf/pathconf.gperf index 60c05d4..e8b8365 100644 --- a/usr.bin/getconf/pathconf.gperf +++ b/usr.bin/getconf/pathconf.gperf @@ -7,7 +7,6 @@ #include <sys/types.h> -#include <limits.h> #include <string.h> #include <unistd.h> @@ -16,10 +15,10 @@ /* * 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 { char *name; int key; int valid; }; +struct map { const char *name; int key; int valid; }; %% FILESIZEBITS, _PC_FILESIZEBITS LINK_MAX, _PC_LINK_MAX @@ -51,7 +50,7 @@ find_pathconf(const char *name, int *key) { const struct map *rv; - rv = in_word_set(name, strlen(name)); + rv = in_word_set(name); if (rv != NULL) { if (rv->valid) { *key = rv->key; |