From: Howard Chu Date: Fri, 13 Jul 2012 18:56:29 +0000 (-0700) Subject: Fix ID -> MDB_ID due to 20baad4a207db5d0e84fc3a7409f216aefa59385 X-Git-Tag: OPENLDAP_REL_ENG_2_4_32~61^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a9775dc5a0a494659b2669f0732cd09b152571d;p=openldap Fix ID -> MDB_ID due to 20baad4a207db5d0e84fc3a7409f216aefa59385 --- diff --git a/libraries/libmdb/mfree.c b/libraries/libmdb/mfree.c index 0833b22f47..b0e6980026 100644 --- a/libraries/libmdb/mfree.c +++ b/libraries/libmdb/mfree.c @@ -27,7 +27,7 @@ int main(int argc,char * argv[]) MDB_txn *txn; MDB_stat mst; MDB_cursor *cursor; - ID i, j, *iptr; + MDB_ID i, j, *iptr; if (argc != 2) { fprintf(stderr, "usage: %s \n", argv[0]); @@ -41,7 +41,7 @@ int main(int argc,char * argv[]) rc = mdb_cursor_open(txn, dbi, &cursor); while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) { printf("key: %p %zu, data: %p\n", - key.mv_data, *(ID *) key.mv_data, + key.mv_data, *(MDB_ID *) key.mv_data, data.mv_data); iptr = data.mv_data; j = *iptr++;