mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix P_INVALID def
This commit is contained in:
parent
7d678832a7
commit
a4c3626267
@ -40,7 +40,7 @@
|
||||
#define MDB_VERSION 1
|
||||
#define MAXKEYSIZE 255
|
||||
|
||||
#define P_INVALID 0xFFFFFFFF
|
||||
#define P_INVALID (~0L)
|
||||
|
||||
#define F_ISSET(w, f) (((w) & (f)) == (f))
|
||||
|
||||
|
@ -53,10 +53,10 @@ int main(int argc,char * argv[])
|
||||
mdb_cursor_close(cursor);
|
||||
|
||||
j=0;
|
||||
key.mv_data = sval;
|
||||
for (i= count - 1; i > -1; i-= (random()%5)) {
|
||||
j++;
|
||||
rc = mdb_txn_begin(env, 0, &txn);
|
||||
key.mv_data = sval;
|
||||
sprintf(sval, "%03x ", values[i]);
|
||||
rc = mdb_del(db, txn, &key, NULL);
|
||||
if (rc) {
|
||||
|
Loading…
Reference in New Issue
Block a user