Bug 2968 - utils/net_rpc_join.c: 'pwbuf' is wrong type
Summary: utils/net_rpc_join.c: 'pwbuf' is wrong type
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.20
Hardware: SGI IRIX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 08:23 UTC by Jason Mader (mail bounces back)
Modified: 2006-06-27 09:49 UTC (History)
0 users

See Also:


Attachments
Change type for pwbuf (570 bytes, patch)
2005-08-09 08:27 UTC, Jason Mader (mail bounces back)
no flags Details
Change type on pwbuf (1.15 KB, patch)
2005-08-12 07:58 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) 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 (mail bounces back) 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 (mail bounces back) 2005-08-09 08:27:17 UTC
Created attachment 1359 [details]
Change type for pwbuf
Comment 3 Jason Mader (mail bounces back) 2005-08-12 07:51:21 UTC
This same problem is in utils/net_rpc.c
Comment 4 Jason Mader (mail bounces back) 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 (mail bounces back) 2006-06-27 09:49:15 UTC
Warning is gone from 3.0.23rc3