diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-03 05:22:36 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-02-07 18:37:43 +0100 |
commit | 91a56b420a7a6f71d69b0bb88143748d834d4a80 (patch) | |
tree | 89bea8a639185703f46a12417948c9e0a07e5e97 /libcli/security | |
parent | 3bccd2f3f365d5b8f227d0ddf9397921c1622c44 (diff) | |
download | samba-91a56b420a7a6f71d69b0bb88143748d834d4a80.tar.gz samba-91a56b420a7a6f71d69b0bb88143748d834d4a80.tar.bz2 samba-91a56b420a7a6f71d69b0bb88143748d834d4a80.zip |
libcli/security: Make del_sid_from_array take a uint32_t
This aligns it with add_sid_to_array
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'libcli/security')
-rw-r--r-- | libcli/security/dom_sid.h | 3 | ||||
-rw-r--r-- | libcli/security/util_sid.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index 8d59b1824c..c65471bf90 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -89,7 +89,8 @@ NTSTATUS add_sid_to_array(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, struct dom_sid **sids, uint32_t *num); NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, struct dom_sid **sids, uint32_t *num_sids); -void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids, size_t *num); +void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids, + uint32_t *num); bool add_rid_to_array_unique(TALLOC_CTX *mem_ctx, uint32_t rid, uint32_t **pp_rids, size_t *p_num); bool is_null_sid(const struct dom_sid *sid); diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c index 3d14536eae..6aec2c0734 100644 --- a/libcli/security/util_sid.c +++ b/libcli/security/util_sid.c @@ -324,10 +324,11 @@ NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, Remove SID from an array ********************************************************************/ -void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids, size_t *num) +void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids, + uint32_t *num) { struct dom_sid *sid_list = *sids; - size_t i; + uint32_t i; for ( i=0; i<*num; i++ ) { |