Bug 2481 - lib/util_str.c: p should be "char *"
lib/util_str.c: p should be "char *"
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient
3.0.11
All All
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-18 10:46 UTC by Jason Mader
Modified: 2005-08-24 10:23 UTC (History)
0 users

See Also:


Attachments
change p to "char *" and removes an "unsigned char *" typecast (651 bytes, patch)
2005-03-18 10:47 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-03-18 10:46:57 UTC
Compiling lib/util_str.c
cc-1164 cc: WARNING File = lib/util_str.c, Line = 390
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

        push_ucs2(NULL, tmpbuf, p, sizeof(tmpbuf), STR_TERMINATE);
                                ^

cc-1164 cc: WARNING File = lib/util_str.c, Line = 392
  Argument of type "unsigned char *" is incompatible with parameter of type
          "char *".

        pull_ucs2(NULL, p, tmpbuf, -1, sizeof(tmpbuf), STR_TERMINATE);
                        ^
Comment 1 Jason Mader 2005-03-18 10:47:57 UTC
Created attachment 1046 [details]
change p to "char *" and removes an "unsigned char *" typecast
Comment 2 Gerald (Jerry) Carter 2005-03-22 08:56:33 UTC
got it.  Thanks.
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:23:02 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.