}
int
-ubik_Write(register struct ubik_trans *transPtr, void *buffer,
+ubik_Write(register struct ubik_trans *transPtr, void *vbuffer,
afs_int32 length)
{
struct ubik_iovec *iovec;
afs_int32 code, error = 0;
afs_int32 pos, len, size;
+ char * buffer = (char *)vbuffer;
if (transPtr->type != UBIK_WRITETRANS)
return UBADTYPE;
int (*sync) (struct ubik_dbase * adbase, afs_int32 afile);
int (*stat) (struct ubik_dbase * adbase, afs_int32 afid,
struct ubik_stat * astat);
- int (*open) (struct ubik_dbase * adbase, afs_int32 afid);
+ void (*open) (struct ubik_dbase * adbase, afs_int32 afid);
int (*setlabel) (struct ubik_dbase * adbase, afs_int32 afile, struct ubik_version * aversion); /*!< set the version label */
int (*getlabel) (struct ubik_dbase * adbase, afs_int32 afile, struct ubik_version * aversion); /*!< retrieve the version label */
int (*getnfiles) (struct ubik_dbase * adbase); /*!< find out number of files */
#ifdef AFS_PTHREAD_ENV
pthread_cond_t version_cond; /*!< condition variable to manage changes to version */
pthread_cond_t flags_cond; /*!< condition variable to manage changes to flags */
- pthread_mutex_t version_mutex;
- pthread_mutex_t flags_mutex;
+ pthread_mutex_t version_mutex;
+ pthread_mutex_t flags_mutex;
#endif
};
#include <afs/pthread_glock.h>
#include <stdio.h>
#include <string.h>
-#include <unistd.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <lock.h>
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#else
+#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#endif
if (code == RXGEN_OPCODE) {
oldServer = 1; /* talking to a pre 3.5 server */
memset(&udebug, 0, sizeof(udebug));
- code = VOTE_DebugOld(tconn, &udebug);
+ code = VOTE_DebugOld(tconn, (ubik_debug_old *)&udebug);
}
if (code) {
if (code < 0) {
if (oldServer) { /* pre 3.5 server */
memset(&usdebug, 0, sizeof(usdebug));
- code = VOTE_SDebugOld(tconn, i, &usdebug);
+ code = VOTE_SDebugOld(tconn, i, (ubik_sdebug_old *)&usdebug);
} else
code = VOTE_SDebug(tconn, i, &usdebug);
}
#include <sys/file.h>
#include <netinet/in.h>
#endif
-#include <afs/afsutil.h>
#include <lock.h>
#include <string.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <afs/afsutil.h>
#include <time.h>
+#include <stdarg.h>
#define UBIK_INTERNALS
#include "ubik.h"
aparm->syncTime = syncTime;
aparm->amSyncSite = ubik_amSyncSite;
- ubeacon_Debug(aparm);
+ ubeacon_Debug((ubik_debug *)aparm);
- udisk_Debug(aparm);
+ udisk_Debug((ubik_debug *)aparm);
- ulock_Debug(aparm);
+ ulock_Debug((ubik_debug *)aparm);
/* Get the recovery state. The label of the database may not have
* been written yet but set the flag so udebug behavior remains.