$(CC) $(CFLAGS) -c $<
list.o: list.c ${INCLS}
recoverDb.o: recoverDb.c ${INCLS}
- $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
tcudbprocs.o: tcudbprocs.c ${INCLS}
$(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
dump.o: dump.c ${INCLS}
#include <afsconfig.h>
#include <afs/param.h>
+#ifdef IGNORE_SOME_GCC_WARNINGS
+# pragma GCC diagnostic warning "-Wstrict-prototypes"
+#endif
#include <sys/types.h>
#ifdef AFS_NT40_ENV
hostVolumeHeader.contd = ((fragmentNumber == 1) ? 0 : TC_VOLCONTD);
volumeHeader_hton(&hostVolumeHeader, (struct volumeHeader *)buffer);
- rc = butm_WriteFileData(tapeInfoPtr, (struct volumeHeader *)buffer, 1,
+ rc = butm_WriteFileData(tapeInfoPtr, buffer, 1,
sizeof(hostVolumeHeader));
if (rc) {
ErrorLog(1, taskId, rc, tapeInfoPtr->error,
hostVolumeHeader.contd = (endofvolume ? 0 : TC_VOLCONTD);
hostVolumeHeader.magic = TC_VOLENDMAGIC;
hostVolumeHeader.endTime = (endofvolume ? time(0) : 0);
- volumeHeader_hton(&hostVolumeHeader, &buffer[bytesread]);
+ volumeHeader_hton(&hostVolumeHeader, (struct volumeHeader *)&buffer[bytesread]);
bytesread += sizeof(hostVolumeHeader);
}
struct tapeScanInfo *scanInfoPtr)
{
int moreTapes = 1;
- afs_int32 nbytes, flags, seq;
+ afs_int32 flags, seq;
+ afs_uint32 nbytes = 0;
int newDump = 1, newTape = 1;
afs_int32 tapePosition;
afs_int32 code = 0, tcode;
#include <afsconfig.h>
#include <afs/param.h>
+#ifdef IGNORE_SOME_GCC_WARNINGS
+# pragma GCC diagnostic warning "-Wimplicit-function-declaration"
+#endif
#include <sys/types.h>
#include <sys/stat.h>
char devName[LINESIZE], tcapacity[LINESIZE], tfmsize[LINESIZE],
trest[LINESIZE];
afs_int32 aport;
- afs_uint32 capacity;
- afs_uint32 fmSize;
+ afs_int32 capacity;
+ afs_int32 fmSize;
afs_int32 code = 0, count;
/* Initialize the config struct */
#include <afsconfig.h>
#include <afs/param.h>
+#ifdef IGNORE_SOME_GCC_WARNINGS
+# pragma GCC diagnostic warning "-Wimplicit-function-declaration"
+#endif
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#include <netinet/in.h>
#endif
#include <sys/types.h>
+#include <sys/wait.h>
#include <fcntl.h>
#include <errno.h>
#include <limits.h>
${CC} ${CFLAGS} -c ${BUTC}/tcudbprocs.c
dump.o: ${BUTC}/dump.c ${BUTCINCLS}
- ${CC} ${CFLAGS} -c ${BUTC}/dump.c
+ ${CC} ${CFLAGS} @CFLAGS_NOERROR@ -c ${BUTC}/dump.c
tcstatus.o: ${BUTC}/tcstatus.c ${BUTCINCLS}
${CC} ${CFLAGS} -c ${BUTC}/tcstatus.c