Bug 2481 - lib/util_str.c: p should be "char *"
Summary: lib/util_str.c: p should be "char *"
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 3.0.11
Hardware: All All
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 10:46 UTC by Jason Mader (mail bounces back)
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 (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-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 (mail bounces back) 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 (dead mail address) 2005-03-22 08:56:33 UTC
got it.  Thanks.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:23:02 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.