#include <sys/file.h>
#include <string.h>
-#include "cnvldb.h" /* CHANGEME! */
#include <netinet/in.h>
#include <afs/venus.h>
#include <afs/cmd.h>
#include <afs/fileutil.h>
#include "vlserver.h"
+#include "cnvldb.h" /* CHANGEME! */
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
#define BADSERVERID 255 /* XXX */
(netries == 1 ? "y" : "ies"));
for (vllist = linkedvldbs.node; vllist; vllist = vllist1) {
vllist1 = vllist->next_vldb;
- display_entry(&vllist->VldbEntry, 0);
+ display_entry((struct vldbentry *)&vllist->VldbEntry, 0);
free((char *)vllist);
}
} else if (!strcmp(oper, "di")) {
display_entry(&entry, code);
printf("return code is %d.\n", code);
} else if (!strcmp(oper, "nv")) {
- int newvolid;
+ unsigned int newvolid;
sscanf(&(*argp)[0], "%d", &id);
code =
ubik_VL_GetNewVolumeId(cstruct, 0, id, &newvolid);
if (!code)
- printf("Current Max volid is (in hex):%X\n", newvolid);
+ printf("Current Max volid is (in hex):0x%x\n", newvolid);
printf("return code is %d\n", code);
} else if (!strcmp(oper, "gs")) {
vldstats stats;
hash = NameHash(vlentry.name);
nextpp = &vlentry.nextNameHash;
which = "name";
- sprintf(volidbuf, "");
+ volidbuf[0]='\0';
foundbad = 1;
}
hash = NameHash(vlentry.name);
nextpp = &vlentry.nextNameHash;
which = "name";
- sprintf(volidbuf, "");
+ volidbuf[0]='\0';
readentry(nextp, &vlentry2, &type);
nexthash = NameHash(vlentry2.name);
if (hash != nexthash)