--- rpc_server/srv_samr_nt.o --- cc-1515 c99: WARNING File = rpc_server/srv_samr_nt.c, Line = 1643 A value of type "unsigned int *" cannot be assigned to an entity of type "enum SID_NAME_USE *". attrs = TALLOC_ZERO_ARRAY(p->mem_ctx, uint32, num_rids); ^ cc-1164 c99: WARNING File = rpc_server/srv_samr_nt.c, Line = 1661 Argument of type "enum SID_NAME_USE *" is incompatible with parameter of type "unsigned int *". init_samr_r_lookup_rids(r_u, num_rids, hdr_name, uni_name, attrs); ^
--- passdb/lookup_sid.o --- cc-1164 c99: WARNING File = passdb/lookup_sid.c, Line = 376 Argument of type "unsigned int *" is incompatible with parameter of type "enum SID_NAME_USE *". &names[i], &types[i])) { ^ cc-1164 c99: WARNING File = passdb/lookup_sid.c, Line = 493 Argument of type "enum SID_NAME_USE *" is incompatible with parameter of type "unsigned int *". domain_name, *names, *types); ^
Created attachment 2003 [details] Use "enum SID_NAME_USE" instead of "uin32"
The patch causes this warning in winbindd: --- nsswitch/winbindd_rpc.o --- cc-1164 c99: WARNING File = nsswitch/winbindd_rpc.c, Line = 310 Argument of type "unsigned int **" is incompatible with parameter of type "enum SID_NAME_USE **". 1, sid, &domains, &names, &types); ^
Fixed thanks - couldn't use the patch as given but did something similar. Jeremy.