diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-09-27 16:35:19 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-09-27 16:35:19 +0000 |
| commit | da30581ecb8ac30d2c7f092cfa719212a96bfaf0 (patch) | |
| tree | 9a778e27e2c454d4b6017865cd257d37f699cabf /lib | |
| parent | 60d6cc883c80f599dd9902a64ea9ddd41cbef9fb (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libugidfw/ugidfw.c | 5 | ||||
| -rw-r--r-- | lib/libugidfw/ugidfw.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libugidfw/ugidfw.c b/lib/libugidfw/ugidfw.c index 2b5d0d2f0f59..b31f5eab3061 100644 --- a/lib/libugidfw/ugidfw.c +++ b/lib/libugidfw/ugidfw.c @@ -553,9 +553,10 @@ bsde_parse_rule_string(const char *string, struct mac_bsdextended_rule *rule, } int -bsde_get_mib(const char *string, int *name, int *namelen) +bsde_get_mib(const char *string, int *name, size_t *namelen) { - int error, len; + size_t len; + int error; len = *namelen; error = sysctlnametomib(string, name, &len); diff --git a/lib/libugidfw/ugidfw.h b/lib/libugidfw/ugidfw.h index 5d3352d2b474..fa502b48c1e9 100644 --- a/lib/libugidfw/ugidfw.h +++ b/lib/libugidfw/ugidfw.h @@ -49,7 +49,7 @@ int bsde_parse_rule(int argc, char *argv[], struct mac_bsdextended_rule *rule, size_t buflen, char *errstr); int bsde_parse_rule_string(const char *string, struct mac_bsdextended_rule *rule, size_t buflen, char *errstr); -int bsde_get_mib(const char *string, int *name, int *namelen); +int bsde_get_mib(const char *string, int *name, size_t *namelen); int bsde_get_rule_count(size_t buflen, char *errstr); int bsde_get_rule_slots(size_t buflen, char *errstr); int bsde_get_rule(int rulenum, struct mac_bsdextended_rule *rule, |
