From: Matthias Dieter Wallnöfer Date: Wed, 16 Feb 2011 08:20:11 +0000 (+0100) Subject: libcli/security/privileges.c - fix the counting of privileges X-Git-Tag: tevent-0.9.11~448 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7659fa802627b472bd514672de76193b4694aa2;p=thirdparty%2Fsamba.git 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". --- diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index e215b5f43ab..1e18b44baa9 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