]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
proto-20061026
authorJim Rees <rees@umich.edu>
Thu, 26 Oct 2006 15:54:12 +0000 (15:54 +0000)
committerJim Rees <rees@umich.edu>
Thu, 26 Oct 2006 15:54:12 +0000 (15:54 +0000)
prototypes for dbread/dbwrite

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

index af6cd3aaf9b77da4be0dbf9b13d26e279cb9bf34..aa6216a001d2c2c3fb13acdb1a107f709da7e5b6 100644 (file)
@@ -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;
 
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);