Bug 3898 - rpc_server/srv_samr_nt.c: type "enum SID_NAME_USE *"
rpc_server/srv_samr_nt.c: type "enum SID_NAME_USE *"
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.23
SGI IRIX
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-29 06:21 UTC by Jason Mader
Modified: 2006-06-29 12:03 UTC (History)
0 users

See Also:


Attachments
Use "enum SID_NAME_USE" instead of "uin32" (2.39 KB, patch)
2006-06-29 06:52 UTC, Jason Mader
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2006-06-29 06:21:00 UTC
--- 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);
                                                                   ^
Comment 1 Jason Mader 2006-06-29 06:21:33 UTC
--- 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);
                                                        ^
Comment 2 Jason Mader 2006-06-29 06:52:30 UTC
Created attachment 2003 [details]
Use "enum SID_NAME_USE" instead of "uin32"
Comment 3 Jason Mader 2006-06-29 07:14:40 UTC
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);
                                                                  ^
Comment 4 Jeremy Allison 2006-06-29 12:03:49 UTC
Fixed thanks - couldn't use the patch as given but did something similar.
Jeremy.