From e7659fa802627b472bd514672de76193b4694aa2 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 16 Feb 2011 09:20:11 +0100 Subject: libcli/security/privileges.c - fix the counting of privileges Since the privileges are always counted with a signed integer, there is no reason to specify the upper limit with a "uint32_t". --- libcli/security/privileges.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'libcli') diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index e215b5f43a..1e18b44baa 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -190,10 +190,9 @@ uint64_t sec_privilege_mask(enum sec_privilege privilege) void se_priv_put_all_privileges(uint64_t *privilege_mask) { int i; - uint32_t num_privs = ARRAY_SIZE(privs); *privilege_mask = 0; - for ( i=0; i