Index: utils/profiles.c =================================================================== --- utils/profiles.c (revision 9303) +++ utils/profiles.c (working copy) @@ -417,10 +417,10 @@ * Quick and dirty to read a SID in S-1-5-21-x-y-z-rid format and * construct a DOM_SID */ -static int get_sid(DOM_SID *sid, const unsigned char *sid_str) +static int get_sid(DOM_SID *sid, const char *sid_str) { int i = 0, auth; - const unsigned char *lstr; + const char *lstr; if (strncmp(sid_str, "S-1-5", 5)) { fprintf(stderr, "Does not conform to S-1-5...: %s\n", sid_str); @@ -447,7 +447,7 @@ SIVAL(&sid->sub_auths[i], 0, auth); i++; - lstr = (const unsigned char *)strchr(lstr + 1, '-'); + lstr = strchr(lstr + 1, '-'); } return 1;