From: Jim Rees Date: Thu, 26 Oct 2006 15:54:12 +0000 (+0000) Subject: proto-20061026 X-Git-Tag: BP-openafs-windows-kdfs-ifs~967 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2145b549b304291c9ed022bcb9a8ce8c9042c3a6;p=packages%2Fo%2Fopenafs.git proto-20061026 prototypes for dbread/dbwrite --- 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);