summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-05-27 12:52:37 -0700
committerTim Prouty <tprouty@samba.org>2009-05-27 13:18:12 -0700
commitc299833bf8e6506c793d6e8283743949aaac9ef4 (patch)
tree43021e5c8ce38f9d0182a0189b79971acdb7cf58 /lib
parenta4887e250b84c321c75d54b9d3adf6fcf7c27fed (diff)
downloadsamba-c299833bf8e6506c793d6e8283743949aaac9ef4.tar.gz
samba-c299833bf8e6506c793d6e8283743949aaac9ef4.tar.bz2
samba-c299833bf8e6506c793d6e8283743949aaac9ef4.zip
tdb: Fix some recently introduced warnings in tdbtool
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/tools/tdbtool.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tdb/tools/tdbtool.c b/lib/tdb/tools/tdbtool.c
index 3220e47b13..c0814e11de 100644
--- a/lib/tdb/tools/tdbtool.c
+++ b/lib/tdb/tools/tdbtool.c
@@ -401,8 +401,8 @@ static void speed_tdb(const char *tlimit)
do {
long int r = random();
TDB_DATA key, dbuf;
- key.dptr = "store test";
- key.dsize = strlen(key.dptr);
+ key.dptr = (unsigned char *)"store test";
+ key.dsize = strlen((char *)key.dptr);
dbuf.dptr = (unsigned char *)&r;
dbuf.dsize = sizeof(r);
tdb_store(tdb, key, dbuf, TDB_REPLACE);
@@ -417,8 +417,8 @@ static void speed_tdb(const char *tlimit)
do {
long int r = random();
TDB_DATA key, dbuf;
- key.dptr = "store test";
- key.dsize = strlen(key.dptr);
+ key.dptr = (unsigned char *)"store test";
+ key.dsize = strlen((char *)key.dptr);
dbuf.dptr = (unsigned char *)&r;
dbuf.dsize = sizeof(r);
tdb_fetch(tdb, key);
@@ -433,8 +433,8 @@ static void speed_tdb(const char *tlimit)
do {
long int r = random();
TDB_DATA key, dbuf;
- key.dptr = "transaction test";
- key.dsize = strlen(key.dptr);
+ key.dptr = (unsigned char *)"transaction test";
+ key.dsize = strlen((char *)key.dptr);
dbuf.dptr = (unsigned char *)&r;
dbuf.dsize = sizeof(r);
tdb_transaction_start(tdb);