Bug 2997 - utils/profiles.c: BAD TYPECAST
utils/profiles.c: BAD TYPECAST
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
All All
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
Blocks: 2969 3006
  Show dependency treegraph
Reported: 2005-08-12 17:36 UTC by Jason Mader
Modified: 2005-08-30 04:24 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 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 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 2005-08-30 04:24:19 UTC
profiles.c has been largely rewritten now so I doubt this bug applies anymore.