]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-proto-20061026
authorJim Rees <rees@umich.edu>
Fri, 6 Jul 2007 12:35:24 +0000 (12:35 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 6 Jul 2007 12:35:24 +0000 (12:35 +0000)
prototypes for dbread/dbwrite

(cherry picked from commit 2145b549b304291c9ed022bcb9a8ce8c9042c3a6)

src/budb/database.c
src/budb/database.h

index d3e437603c85ca1d32eeca207fbcfb3bd42339f1..42c4f43c9b3c5b9008e7774815fec6b4ae6b8a9b 100644 (file)
@@ -74,11 +74,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;
 
@@ -110,11 +106,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;
 
@@ -145,12 +137,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;
 
index d545a7187bcba0b906b65f4c3f6a85858b8ff371..b2dcbca293726d77906c26c2f9fea9c233e6ed1f 100644 (file)
@@ -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);