diff options
Diffstat (limited to 'source4/torture/basic')
-rw-r--r-- | source4/torture/basic/mangle_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/basic/mangle_test.c b/source4/torture/basic/mangle_test.c index 8317a4ee18..36b7481316 100644 --- a/source4/torture/basic/mangle_test.c +++ b/source4/torture/basic/mangle_test.c @@ -90,7 +90,7 @@ static BOOL test_one(struct smbcli_state *cli, const char *name) data = tdb_fetch_bystring(tdb, shortname); if (data.dptr) { /* maybe its a duplicate long name? */ - if (strcasecmp(name, data.dptr) != 0) { + if (strcasecmp(name, (const char *)data.dptr) != 0) { /* we have a collision */ collisions++; printf("Collision between %s and %s -> %s " @@ -101,7 +101,7 @@ static BOOL test_one(struct smbcli_state *cli, const char *name) } else { TDB_DATA namedata; /* store it for later */ - namedata.dptr = discard_const_p(char, name); + namedata.dptr = discard_const_p(uint8_t, name); namedata.dsize = strlen(name)+1; tdb_store_bystring(tdb, shortname, namedata, TDB_REPLACE); } |