diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-28 20:01:38 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-28 20:01:38 +0000 |
commit | 41f4e0eb175e0e1ec2c7fa0af905e97ed76996c7 (patch) | |
tree | 2aac20490200e00aba6e36dc6eaec794b658377d /include/protocols | |
parent | 5b521f3c4f8da9d35e865fb9daa7a51e4fa00adb (diff) | |
download | FreeBSD-src-41f4e0eb175e0e1ec2c7fa0af905e97ed76996c7.zip FreeBSD-src-41f4e0eb175e0e1ec2c7fa0af905e97ed76996c7.tar.gz |
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.
Diffstat (limited to 'include/protocols')
-rw-r--r-- | include/protocols/dumprestore.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 */ |