From bbd7f7bf0fd4f6cda41989c3371d7bf18f49a592 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Oct 2000 18:50:18 +0000 Subject: Herb's fixes for profiling & compiler warnings. Jeremy. (This used to be commit 7914e9351abb5271ebb4990c3b1fe495d15a4eda) --- source3/tdb/tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/tdb') diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index d9401d95d4..9c5e99e06b 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -610,7 +610,7 @@ char *tdb_error(TDB_CONTEXT *tdb) {TDB_ERR_OOM, "Out of memory"}, {TDB_ERR_EXISTS, "Record exists"}, {TDB_ERR_NOEXIST, "Record does not exist"}, - {-1, NULL}}; + {(enum TDB_ERROR)-1, NULL}}; if (tdb != NULL) { for (i=0;emap[i].estring;i++) { if (tdb->ecode == emap[i].ecode) return emap[i].estring; -- cgit