From 41f4e0eb175e0e1ec2c7fa0af905e97ed76996c7 Mon Sep 17 00:00:00 2001 From: dillon Date: Sun, 28 Oct 2001 20:01:38 +0000 Subject: Make the protocol/dumprestore.h header match restore's idea of the dump header for the case where sizeof(time_t) != sizeof(int). dumprestore.h was embedding time_t when it should have been embedding int32_t. Use time_to_time32() and time32_to_time() to convert between the protocoll/file-format time and time_t. --- include/protocols/dumprestore.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/protocols') diff --git a/include/protocols/dumprestore.h b/include/protocols/dumprestore.h index 98704e7..b4a45fe 100644 --- a/include/protocols/dumprestore.h +++ b/include/protocols/dumprestore.h @@ -36,6 +36,8 @@ * SUCH DAMAGE. * * @(#)dumprestore.h 8.2 (Berkeley) 1/21/94 + * + * $FreeBSD$ */ #ifndef _PROTOCOLS_DUMPRESTORE_H_ @@ -68,8 +70,8 @@ union u_spcl { char dummy[TP_BSIZE]; struct s_spcl { int32_t c_type; /* record type (see below) */ - time_t c_date; /* date of this dump */ - time_t c_ddate; /* date of previous dump */ + int32_t c_date; /* date of this dump */ + int32_t c_ddate; /* date of previous dump */ int32_t c_volume; /* dump volume number */ daddr_t c_tapea; /* logical block of this record */ ino_t c_inumber; /* number of inode */ -- cgit v1.1