iodp->haveOldChar = 0;
return iodp->oldChar;
}
- if (iod_Read(iodp, &t, 1) == 1)
+ if (iod_Read(iodp, (char *) &t, 1) == 1)
return t;
return EOF;
}
if (nbytes < size)
size = nbytes;
- if ((code = iod_Read(iodp, p, size)) != size) {
+ if ((code = iod_Read(iodp, (char *) p, size)) != size) {
Log("1 Volser: WriteFile: Error reading dump file %d size=%llu nbytes=%u (%d of %u); restore aborted\n", vn, (afs_uintmax_t) filesize, nbytes, code, size);
*status = 3;
break;
break;
case 'v':
- ntohl(readvalue(4)); /* version stamp - ignore */
+ (void)ntohl(readvalue(4)); /* version stamp - ignore */
break;
case 'n':
static afs_int32
ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
struct VnodeExtract **list,
- afs_int32 *length, afs_uint32 where,
+ afs_uint32 *length, afs_uint32 where,
struct VnodeDiskObject *vd,
- afs_int32 *parent, struct VnodeDiskObject *parentvd)
+ afs_uint32 *parent, struct VnodeDiskObject *parentvd)
{
afs_int32 code = 0;
char buf[SIZEOF_LARGEDISKVNODE];
FindVnodes(struct Msg *m, afs_uint32 where,
struct VnodeExtract *list, afs_int32 length,
struct VnodeExtract *dlist, afs_int32 dlength,
- afs_int32 *needed, afs_int32 class)
+ afs_uint32 *needed, afs_int32 class)
{
afs_int32 i, j, found = 0;
afs_int32 parent = 0;
/* Protos for static routines */
+#if 0
static afs_int32 CheckAndDeleteVolume(struct rx_connection *aconn,
afs_int32 apart, afs_uint32 okvol,
afs_uint32 delvol);
+#endif
static int DelVol(struct rx_connection *conn, afs_uint32 vid, afs_int32 part,
afs_int32 flags);
static int GetTrans(struct nvldbentry *vldbEntryPtr, afs_int32 index,
struct rx_connection **connPtr, afs_int32 * transPtr,
- afs_int32 * crtimePtr, afs_int32 * uptimePtr);
+ afs_uint32 * crtimePtr, afs_uint32 * uptimePtr);
static int SimulateForwardMultiple(struct rx_connection *fromconn,
afs_int32 fromtid, afs_int32 fromdate,
manyDests * tr, afs_int32 flags,
static int
AFSVolCreateVolume_retry(struct rx_connection *z_conn,
afs_int32 partition, char *name, afs_int32 type,
- afs_int32 parent, afs_int32 *volid, afs_int32 *trans)
+ afs_int32 parent, afs_uint32 *volid, afs_int32 *trans)
{
afs_int32 code;
int retries = 3;
return code;
}
+#if 0
/* if <okvol> is allright(indicated by beibg able to
* start a transaction, delete the <delvol> */
static afs_int32
}
}
+#endif
+
/* called by EmuerateEntry, show vldb entry in a reasonable format */
void
SubEnumerateEntry(struct nvldbentry *entry)
static int
GetTrans(struct nvldbentry *vldbEntryPtr, afs_int32 index,
struct rx_connection **connPtr, afs_int32 * transPtr,
- afs_int32 * crtimePtr, afs_int32 * uptimePtr)
+ afs_uint32 * crtimePtr, afs_uint32 * uptimePtr)
{
afs_uint32 volid;
struct volser_status tstatus;
register int code;
ListAddrByAttributes attrs;
bulkaddrs addrs;
- afs_uint32 *addrp, nentries, unique, i, j, f1, f2;
+ afs_uint32 *addrp, i, j, f1, f2;
+ afs_int32 unique, nentries;
afsUUID uuid;
static int initcache = 0;