Samba 3.0.12rc1 Compiling lib/privileges.c cc-1164 cc: WARNING File = lib/privileges.c, Line = 495 Argument of type "unsigned int *" is incompatible with parameter of type "int *". add_sid_to_array( &sid, &priv->sids.list, &priv->sids.count ); ^
Created attachment 1048 [details] changes num to "unsigned int *" I changed the argument num of add_sid_to_array() and related add/del sid functions to "unsigned int *", and that compiled without warning.
Compiling groupdb/mapping.c cc-1164 cc: WARNING File = groupdb/mapping.c, Line = 521 Argument of type "int *" is incompatible with parameter of type "unsigned int *". add_sid_to_array_unique(&alias, sids, num); ^ cc-1164 cc: WARNING File = groupdb/mapping.c, Line = 668 Argument of type "int *" is incompatible with parameter of type "unsigned int *". add_sid_to_array(&member, closure->sids, closure->num); ^
Created attachment 1049 [details] changes to lib/util_sid.c and groupdb/mapping.c Side effects found in mapping.c, so I've revised the patch.
fixed by changing the SID_LIST.count declaration.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.