#endif
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
#include <afs/afsutil.h>
#include <rx/xdr.h>
GetServer(char *aname)
{
register struct hostent *th;
- afs_int32 addr;
+ afs_uint32 addr;
int b1, b2, b3, b4;
register afs_int32 code;
(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;
}
free((char *)addrs.bulkaddrs_val);
} else if (!strcmp(oper, "mhc")) {
- afs_int32 serveraddrs[MAXSERVERID + 1][VL_MAXIPADDRS_PERMH];
+ afs_uint32 serveraddrs[MAXSERVERID + 1][VL_MAXIPADDRS_PERMH];
afs_int32 serveraddrtype[MAXSERVERID + 1];
int nentries1, nentries2, i, j, x, y, unique, found;
afs_uint32 *addrp1, *addrp2;
*nargs = 0;
while (*line) {
register char *last = line;
- while (*line == ' ')
+ while (isspace(*line))
line++;
- if (*last == ' ')
+ if (isspace(*last))
*last = 0;
if (!*line)
break;
*args++ = line, (*nargs)++;
- while (*line && *line != ' ')
+ while (*line && !isspace(*line))
line++;
}
}