summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-18 16:20:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:16 -0500
commita920f2f9a8e4ee076471c293765ed0bee13d4cc5 (patch)
treec242596cb0ea760978a563276d976d8d77d0dd6d /source4/torture/basic
parent5bd9b3b808393c8ad59f17d8d13a45b2be6ae0a6 (diff)
downloadsamba-a920f2f9a8e4ee076471c293765ed0bee13d4cc5.tar.gz
samba-a920f2f9a8e4ee076471c293765ed0bee13d4cc5.tar.bz2
samba-a920f2f9a8e4ee076471c293765ed0bee13d4cc5.zip
r13004: fix compiler warnings
metze (This used to be commit 833efdf8a943b210ba8e5b219dc754260001bedb)
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/mangle_test.c4
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);
}