diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-06 14:04:49 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-08 00:28:22 +0100 |
commit | be88a126ea50ea7e41583f402013c63234305e48 (patch) | |
tree | 5cb0cb9c125aba71982e52d6e08661652669ab98 /lib/tdb/common | |
parent | 427a22d946a4902eeb1c229fede5cfc0a60e9528 (diff) | |
download | samba-be88a126ea50ea7e41583f402013c63234305e48.tar.gz samba-be88a126ea50ea7e41583f402013c63234305e48.tar.bz2 samba-be88a126ea50ea7e41583f402013c63234305e48.zip |
tdb: Fix a C++ warning
Diffstat (limited to 'lib/tdb/common')
-rw-r--r-- | lib/tdb/common/check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tdb/common/check.c b/lib/tdb/common/check.c index 4924734fdd..f0a15f801b 100644 --- a/lib/tdb/common/check.c +++ b/lib/tdb/common/check.c @@ -329,7 +329,8 @@ int tdb_check(struct tdb_context *tdb, } /* One big malloc: pointers then bit arrays. */ - hashes = calloc(1, sizeof(hashes[0]) * (1+tdb->header.hash_size) + hashes = (unsigned char **)calloc( + 1, sizeof(hashes[0]) * (1+tdb->header.hash_size) + BITMAP_BITS / CHAR_BIT * (1+tdb->header.hash_size)); if (!hashes) { tdb->ecode = TDB_ERR_OOM; |