#include <ctype.h>
#include "error_macros.h"
#include <afs/budb_errs.h>
+#include <afs/budb_client.h>
+#include <afs/bucoord_prototypes.h>
#include "afs/butx.h"
#define XBSA_TCMAIN
#include "butc_xbsa.h"
#define CFG_PREFIX "CFG"
struct ubik_client *cstruct;
-extern void TC_ExecuteRequest();
+extern void TC_ExecuteRequest(struct rx_call *);
FILE *logIO, *ErrorlogIO, *centralLogIO, *lastLogIO;
char lFile[AFSDIR_PATH_MAX];
char logFile[256];
/* dummy routine for the audit work. It should do nothing since audits */
/* occur at the server level and bos is not a server. */
-osi_audit()
+int
+osi_audit(void)
{
return 0;
}
register int tc;
total = 0;
- while (tc = *anum) {
+ while ((tc = *anum)) {
if (tc < '0' || tc > '9')
return -1;
total *= 10;
}
/* replace last two ocurrences of / by _ */
-static
+#if 0
+static int
stringReplace(char *name)
{
char *pos;
strcat(name, buffer);
return 0;
}
+#endif
-static
+static int
stringNowReplace(char *logFile, char *deviceName)
{
char *pos = 0;
deviceName += devPrefLen;
mvFlag++;
}
- while (pos = strchr(deviceName, devPrefix[0])) /* look for / or \ */
+ while ((pos = strchr(deviceName, devPrefix[0]))) /* look for / or \ */
*pos = '_';
strcat(logFile, deviceName);
/* now put back deviceName to the way it was */