The Samba-Bugzilla – Attachment 1048 Details for
Bug 2485
lib/privileges.c, Line 495: "unsigned int *" incompatible with "int *"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
changes num to "unsigned int *"
bug2485.patch (text/plain), 1.36 KB, created by
Jason Mader (mail bounces back)
on 2005-03-18 11:56:38 UTC
(
hide
)
Description:
changes num to "unsigned int *"
Filename:
MIME Type:
Creator:
Jason Mader (mail bounces back)
Created:
2005-03-18 11:56:38 UTC
Size:
1.36 KB
patch
obsolete
>Index: lib/util_sid.c >=================================================================== >--- lib/util_sid.c (revision 5865) >+++ lib/util_sid.c (working copy) >@@ -652,7 +652,7 @@ > Add SID to an array SIDs > ********************************************************************/ > >-void add_sid_to_array(const DOM_SID *sid, DOM_SID **sids, int *num) >+void add_sid_to_array(const DOM_SID *sid, DOM_SID **sids, unsigned int *num) > { > *sids = SMB_REALLOC_ARRAY(*sids, DOM_SID, (*num)+1); > >@@ -670,23 +670,23 @@ > Add SID to an array SIDs ensuring that it is not already there > ********************************************************************/ > >-void add_sid_to_array_unique(const DOM_SID *sid, DOM_SID **sids, int *num_sids) >+void add_sid_to_array_unique(const DOM_SID *sid, DOM_SID **sids, unsigned int *num) > { > int i; > >- for (i=0; i<(*num_sids); i++) { >+ for (i=0; i<(*num); i++) { > if (sid_compare(sid, &(*sids)[i]) == 0) > return; > } > >- add_sid_to_array(sid, sids, num_sids); >+ add_sid_to_array(sid, sids, num); > } > > /******************************************************************** > Remove SID from an array > ********************************************************************/ > >-void del_sid_from_array(const DOM_SID *sid, DOM_SID **sids, int *num) >+void del_sid_from_array(const DOM_SID *sid, DOM_SID **sids, unsigned int *num) > { > DOM_SID *sid_list = *sids; > int i;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2485
:
1048
|
1049