summaryrefslogtreecommitdiffstats
path: root/sbin/dump
diff options
context:
space:
mode:
authordima <dima@FreeBSD.org>1998-10-27 04:01:19 +0000
committerdima <dima@FreeBSD.org>1998-10-27 04:01:19 +0000
commit832b98b6ffeefa742b85a92148797a3cf4eab153 (patch)
tree03992c539b8793227b7010010c9020daee7e0e71 /sbin/dump
parentedf1f9d5415de3b55c8cf737ff9b69cf7dc9f323 (diff)
downloadFreeBSD-src-832b98b6ffeefa742b85a92148797a3cf4eab153.zip
FreeBSD-src-832b98b6ffeefa742b85a92148797a3cf4eab153.tar.gz
64bit fixes.
(Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem somewhere is the physio() area) Submitted by: myself && Matt Dillon.
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/traverse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 952afc6..555e948 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: traverse.c,v 1.7 1998/06/15 06:58:12 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -501,14 +501,14 @@ void
writeheader(ino)
ino_t ino;
{
- register long sum, cnt, *lp;
+ register int32_t sum, cnt, *lp;
spcl.c_inumber = ino;
spcl.c_magic = NFS_MAGIC;
spcl.c_checksum = 0;
- lp = (long *)&spcl;
+ lp = (int32_t *)&spcl;
sum = 0;
- cnt = sizeof(union u_spcl) / (4 * sizeof(long));
+ cnt = sizeof(union u_spcl) / (4 * sizeof(int32_t));
while (--cnt >= 0) {
sum += *lp++;
sum += *lp++;
OpenPOWER on IntegriCloud