From: Howard Chu Date: Tue, 16 Aug 2011 01:40:50 +0000 (-0700) Subject: Protect err codes X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~99 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9860d5a43ffb8c3bf28954bc5d934d570e136134;p=openldap Protect err codes --- diff --git a/libraries/libmdb/mdb.h b/libraries/libmdb/mdb.h index 39d9b6fb3a..30d4e927ea 100644 --- a/libraries/libmdb/mdb.h +++ b/libraries/libmdb/mdb.h @@ -84,12 +84,12 @@ typedef enum MDB_cursor_op { /* cursor operations */ /* return codes */ /* BerkeleyDB uses -30800 to -30999, we'll go under them */ #define MDB_SUCCESS 0 -#define MDB_KEYEXIST -30799 /* key/data pair already exists */ -#define MDB_NOTFOUND -30798 /* key/data pair not found (EOF) */ -#define MDB_PAGE_NOTFOUND -30797 /* Requested page not found */ -#define MDB_CORRUPTED -30796 /* Located page was wrong type */ -#define MDB_PANIC -30795 /* Update of meta page failed, probably I/O error */ -#define MDB_VERSION_MISMATCH -30794 /* Environment version mismatch */ +#define MDB_KEYEXIST (-30799) /* key/data pair already exists */ +#define MDB_NOTFOUND (-30798) /* key/data pair not found (EOF) */ +#define MDB_PAGE_NOTFOUND (-30797) /* Requested page not found */ +#define MDB_CORRUPTED (-30796) /* Located page was wrong type */ +#define MDB_PANIC (-30795) /* Update of meta page failed, probably I/O error */ +#define MDB_VERSION_MISMATCH (-30794) /* Environment version mismatch */ /* DB flags */ #define MDB_REVERSEKEY 0x02 /* use reverse string keys */