From db4773c818c6ad6ad47244c9d0ac4d0341c47458 Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Fri, 6 Jul 2007 12:34:00 +0000 Subject: [PATCH] STABLE14-proto-20061026 prototypes for dbread/dbwrite (cherry picked from commit 2145b549b304291c9ed022bcb9a8ce8c9042c3a6) --- src/budb/database.c | 19 +++---------------- src/budb/database.h | 4 +++- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/budb/database.c b/src/budb/database.c index af6cd3aaf..aa6216a00 100644 --- a/src/budb/database.c +++ b/src/budb/database.c @@ -75,11 +75,7 @@ InitDB() */ afs_int32 -dbwrite(ut, pos, buff, len) - struct ubik_trans *ut; - afs_int32 pos; - char *buff; - afs_int32 len; +dbwrite(struct ubik_trans *ut, afs_int32 pos, void *buff, afs_int32 len) { afs_int32 code = 0; @@ -111,11 +107,7 @@ dbwrite(ut, pos, buff, len) /* same thing for read */ afs_int32 -dbread(ut, pos, buff, len) - struct ubik_trans *ut; - afs_int32 pos; - char *buff; - afs_int32 len; +dbread(struct ubik_trans *ut, afs_int32 pos, void *buff, afs_int32 len) { afs_int32 code = 0; @@ -146,12 +138,7 @@ dbread(ut, pos, buff, len) /* Same as dbread excepts it does checking */ afs_int32 -cdbread(ut, type, pos, buff, len) - struct ubik_trans *ut; - int type; - afs_int32 pos; - char *buff; - afs_int32 len; +cdbread(struct ubik_trans *ut, int type, afs_int32 pos, void *buff, afs_int32 len) { afs_int32 code = 0; diff --git a/src/budb/database.h b/src/budb/database.h index d545a7187..b2dcbca29 100644 --- a/src/budb/database.h +++ b/src/budb/database.h @@ -315,6 +315,8 @@ struct memoryHashTable *ht_GetType(); extern afs_uint32 ht_HashEntry(); extern dbadr ht_LookupBucket(); -extern afs_int32 dbwrite(struct ubik_trans *ut, afs_int32 pos, char *buff, afs_int32 len); +extern afs_int32 dbwrite(struct ubik_trans *ut, afs_int32 pos, void *buff, afs_int32 len); +extern afs_int32 dbread(struct ubik_trans *ut, afs_int32 pos, void *buff, afs_int32 len); +extern afs_int32 cdbread(struct ubik_trans *ut, int type, afs_int32 pos, void *buff, afs_int32 len); extern void db_panic(char *reason); extern void ht_Reset(struct memoryHashTable *mht); -- 2.39.5