hdr_static_inline(unsigned long) afs_printable_uint32_lu(afs_uint32 d) { return (unsigned long) d; }
+#if !defined(__GNUC__) || __GNUC__ < 2
+#define AFS_UNUSED_FUNCTION
+#else
+#define AFS_UNUSED_FUNCTION __attribute__((unused))
+#endif
+
#endif /* OPENAFS_CONFIG_AFS_STDS_H */
}
static void
-initNonStandardTags()
+initNonStandardTags(void)
{
RegisterTag(0, 'n'); /* volume name */
RegisterTag(0, 't'); /* fromtime, V_backupDate */
*length = len;
else {
len &= 0x7f;
- if (code = iod_Read(iodp, buf, len) != len)
+ if ((code = iod_Read(iodp, (char *)buf, len)) != len)
return VOLSERDUMPERROR;
*length = 0;
p = (unsigned char *)&buf;
SkipData(register struct iod *iodp, afs_size_t length)
{
while (length > 256) {
- if (iod_Read(iodp, &skipbuf, 256) != 256)
+ if (iod_Read(iodp, (char *)&skipbuf, 256) != 256)
return 0;
length -= 256;
}
- if (iod_Read(iodp, &skipbuf, length) != length)
+ if (iod_Read(iodp, (char *)&skipbuf, length) != length)
return 0;
return 1;
}
static char *secname[3] = {"ReadDumpHeader", "ReadVolumeHeader", "ReadVnodes"};
static int
-HandleUnknownTag(struct iod *iodp, register tag, afs_int32 section,
+HandleUnknownTag(struct iod *iodp, int tag, afs_int32 section,
afs_int32 critical)
{
- afs_size_t taglen;
+ afs_size_t taglen = 0;
afs_uint32 trash;
if (critical) {
return 0;
}
+AFS_UNUSED_FUNCTION
static afs_int32
DumpStandardTagLen(register struct iod *iodp, char tag, afs_uint32 section,
afs_size_t length)