extern struct deviceSyncNode *deviceLatch;
extern char globalCellName[];
struct timeval tp;
-struct timezone tzp;
/* forward declaration */
afs_int32 readVolumeHeader(char *, afs_int32, struct volumeHeader *);
struct butm_tapeLabel *tapeLabel)
{
struct timeval tp;
- struct timezone tzp;
afs_uint32 size;
memset(tapeLabel, 0, sizeof(struct butm_tapeLabel));
} else {
size = 0; /* no tape size */
}
- gettimeofday(&tp, &tzp);
+ gettimeofday(&tp, NULL);
tapeLabel->structVersion = CUR_TAPE_VERSION;
tapeLabel->creationTime = tp.tv_sec;
{
Date expiration;
struct timeval tp;
- struct timezone tzp;
expiration = ExpirationDate(tapeLabelPtr->dumpid);
if (!expiration)
expiration = tapeLabelPtr->expirationDate;
- gettimeofday(&tp, &tzp);
+ gettimeofday(&tp, NULL);
return ((expiration < tp.tv_sec) ? 1 : 0);
}