Bug 3898 - rpc_server/srv_samr_nt.c: type "enum SID_NAME_USE *"
Summary: rpc_server/srv_samr_nt.c: type "enum SID_NAME_USE *"
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.23
Hardware: SGI IRIX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-29 06:21 UTC by Jason Mader (mail bounces back)
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 (mail bounces back)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader (mail bounces back) 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 (mail bounces back) 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 (mail bounces back) 2006-06-29 06:52:30 UTC
Created attachment 2003 [details]
Use "enum SID_NAME_USE" instead of "uin32"
Comment 3 Jason Mader (mail bounces back) 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.