git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tdb: Make tdb_recovery_size overflow-safe
[obnox/samba/samba-obnox.git]
/
lib
/
tdb
/
common
/
tdb_private.h
diff --git
a/lib/tdb/common/tdb_private.h
b/lib/tdb/common/tdb_private.h
index 406fc5f7f2052eb3d457b60d098efa5b84e1dbdb..ce92188688b021eb63923e2a89263a9b3c29af3f 100644
(file)
--- a/
lib/tdb/common/tdb_private.h
+++ b/
lib/tdb/common/tdb_private.h
@@
-282,4
+282,8
@@
void tdb_header_hash(struct tdb_context *tdb,
uint32_t *magic1_hash, uint32_t *magic2_hash);
unsigned int tdb_old_hash(TDB_DATA *key);
size_t tdb_dead_space(struct tdb_context *tdb, tdb_off_t off);
uint32_t *magic1_hash, uint32_t *magic2_hash);
unsigned int tdb_old_hash(TDB_DATA *key);
size_t tdb_dead_space(struct tdb_context *tdb, tdb_off_t off);
+bool tdb_add_off_t(tdb_off_t a, tdb_off_t b, tdb_off_t *pret);
+
+/* tdb_off_t and tdb_len_t right now are both uint32_t */
+#define tdb_add_len_t tdb_add_off_t
#endif /* TDB_PRIVATE_H */
#endif /* TDB_PRIVATE_H */