mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Use size_t instead of int for len variables passed in/out of sysctl.
Pointed out by: jake
This commit is contained in:
parent
60d6cc883c
commit
da30581ecb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104038
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user