summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/btree.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldapd/btree.h')
-rw-r--r--usr.sbin/ldapd/btree.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ldapd/btree.h b/usr.sbin/ldapd/btree.h
index 6bf6ca26997..c65f57ab15e 100644
--- a/usr.sbin/ldapd/btree.h
+++ b/usr.sbin/ldapd/btree.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: btree.h,v 1.3 2010/06/13 06:46:03 martinh Exp $ */
+/* $OpenBSD: btree.h,v 1.4 2010/06/13 06:55:33 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -20,7 +20,6 @@
#define _btree_h_
#include <openssl/sha.h>
-#include <stdint.h>
struct mpage;
struct cursor;
@@ -33,8 +32,6 @@ struct btval {
struct mpage *mp; /* ref'd memory page */
};
-typedef uint32_t pgno_t;
-typedef uint16_t indx_t;
typedef int (*bt_cmp_func)(const struct btval *a,
const struct btval *b);
typedef void (*bt_prefix_func)(const struct btval *a,
@@ -78,8 +75,8 @@ struct btree_stat {
time_t created_at;
};
-struct btree *btree_open_fd(int fd, uint32_t flags);
-struct btree *btree_open(const char *path, uint32_t flags,
+struct btree *btree_open_fd(int fd, unsigned int flags);
+struct btree *btree_open(const char *path, unsigned int flags,
mode_t mode);
void btree_close(struct btree *bt);
const struct btree_stat *btree_stat(struct btree *bt);