summaryrefslogtreecommitdiff
path: root/include/protocols
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1996-11-30 18:01:52 +0000
committercgd <cgd@NetBSD.org>1996-11-30 18:01:52 +0000
commita0c5caa042aae1bd46d8e12c6277d2bb10a7eacc (patch)
treeffdb391eae12001a804cc98c9d58e57566a29ad4 /include/protocols
parent15aad8e10b13e3db608ddf0c06bf696adff63eda (diff)
patches from Tom I Helbekkmo <tih@nhh.no> to deal with type-size issues,
so this works (better, at least) on 64-bit machines (e.g. alpha).
Diffstat (limited to 'include/protocols')
-rw-r--r--include/protocols/dumprestore.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/protocols/dumprestore.h b/include/protocols/dumprestore.h
index bc014cefaa4..06b32400b10 100644
--- a/include/protocols/dumprestore.h
+++ b/include/protocols/dumprestore.h
@@ -1,4 +1,4 @@
-/* $NetBSD: dumprestore.h,v 1.6 1994/10/26 00:56:49 cgd Exp $ */
+/* $NetBSD: dumprestore.h,v 1.7 1996/11/30 18:01:52 cgd Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -69,25 +69,25 @@
union u_spcl {
char dummy[TP_BSIZE];
struct s_spcl {
- long c_type; /* record type (see below) */
+ int32_t c_type; /* record type (see below) */
time_t c_date; /* date of this dump */
time_t c_ddate; /* date of previous dump */
- long c_volume; /* dump volume number */
+ int32_t c_volume; /* dump volume number */
daddr_t c_tapea; /* logical block of this record */
ino_t c_inumber; /* number of inode */
- long c_magic; /* magic number (see above) */
- long c_checksum; /* record checksum */
+ int32_t c_magic; /* magic number (see above) */
+ int32_t c_checksum; /* record checksum */
struct dinode c_dinode; /* ownership and mode of inode */
- long c_count; /* number of valid c_addr entries */
+ int32_t c_count; /* number of valid c_addr entries */
char c_addr[TP_NINDIR]; /* 1 => data; 0 => hole in inode */
char c_label[LBLSIZE]; /* dump label */
- long c_level; /* level of this dump */
+ int32_t c_level; /* level of this dump */
char c_filesys[NAMELEN]; /* name of dumpped file system */
char c_dev[NAMELEN]; /* name of dumpped device */
char c_host[NAMELEN]; /* name of dumpped host */
- long c_flags; /* additional information */
- long c_firstrec; /* first record on volume */
- long c_spare[32]; /* reserved for future uses */
+ int32_t c_flags; /* additional information */
+ int32_t c_firstrec; /* first record on volume */
+ int32_t c_spare[32]; /* reserved for future uses */
} s_spcl;
} u_spcl;
#define spcl u_spcl.s_spcl