diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-13 06:55:34 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-13 06:55:34 +0000 |
commit | bff7a14a030e2d02fa542c760143530a445daa65 (patch) | |
tree | 126b5126c26f6d1aa9060b0e4928382104d18509 /usr.sbin/ldapd/btree.h | |
parent | c28274dcbc845f78f16c3941169314504517ed88 (diff) |
Don't expose typedefs of pgno_t and indx_t in the public header file, move
them to btree.c. Also don't use exact-width integer types in public btree api.
Diffstat (limited to 'usr.sbin/ldapd/btree.h')
-rw-r--r-- | usr.sbin/ldapd/btree.h | 9 |
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); |