Bug 2968 - utils/net_rpc_join.c: 'pwbuf' is wrong type
utils/net_rpc_join.c: 'pwbuf' is wrong type
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-08-09 08:23 UTC by Jason Mader
Modified: 2006-06-27 09:49 UTC (History)
0 users

See Also:

Change type for pwbuf (570 bytes, patch)
2005-08-09 08:27 UTC, Jason Mader
no flags Details
Change type on pwbuf (1.15 KB, patch)
2005-08-12 07:58 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 2005-08-09 08:23:57 UTC
cc-1164 cc: WARNING File = utils/net_rpc_join.c, Line = 264
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        encode_pw_buffer(pwbuf, clear_trust_password, STR_UNICODE);
Comment 1 Jason Mader 2005-08-09 08:26:39 UTC
pwbuf should be declared 'char' and it's use in init_sam_user_info24() doesn't
need a typecast.
Comment 2 Jason Mader 2005-08-09 08:27:17 UTC
Created attachment 1359 [details]
Change type for pwbuf
Comment 3 Jason Mader 2005-08-12 07:51:21 UTC
This same problem is in utils/net_rpc.c
Comment 4 Jason Mader 2005-08-12 07:58:44 UTC
Created attachment 1368 [details]
Change type on pwbuf

now for utils/net_rpc.c and utils/net_rpc_join.c
Comment 5 Jason Mader 2006-06-27 09:49:15 UTC
Warning is gone from 3.0.23rc3