Bug 2997 - utils/profiles.c: BAD TYPECAST
Summary: utils/profiles.c: BAD TYPECAST
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.20
Hardware: All All
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks: 2969 3006
  Show dependency treegraph
 
Reported: 2005-08-12 17:36 UTC by Jason Mader (mail bounces back)
Modified: 2005-08-30 04:24 UTC (History)
0 users

See Also:


Attachments

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-12 17:36:36 UTC
cc-1164 cc: WARNING File = utils/profiles.c, Line = 450
  Argument of type "const unsigned char *" is incompatible with parameter of
          type "const char *".

      lstr = (const unsigned char *)strchr(lstr + 1, '-');
                                           ^
Comment 1 Jason Mader (mail bounces back) 2005-08-12 17:51:02 UTC
Since this is very dependant on string functions, sid_str might be a char *.

static int get_sid(DOM_SID *sid, char *sid_str);
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-08-30 04:24:19 UTC
profiles.c has been largely rewritten now so I doubt this bug applies anymore.