diff options
author | kib <kib@FreeBSD.org> | 2011-12-20 20:39:00 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-12-20 20:39:00 +0000 |
commit | bddaa1fa310d912eb2034dafba828988ec241ced (patch) | |
tree | 0fc13d432624f8d74100401d4b53a5cffd4ad582 /sbin/fsck_ffs/fsck.h | |
parent | 303fa095abb4476b102d9fb37c8fa6162ab484fa (diff) | |
download | FreeBSD-src-bddaa1fa310d912eb2034dafba828988ec241ced.zip FreeBSD-src-bddaa1fa310d912eb2034dafba828988ec241ced.tar.gz |
Change the type of real_dev_bsize variable from long to u_int.
The DIOCGSECTORSIZE takes u_int * as an argument, using long *
causes failures on big-endian targets.
Diagnosed by: Michiel Boland <boland37 xs4all nl>
PR: sparc64/163460
Tested by: pho (x86), flo (sparc64)
MFC after: 1 week
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index 8091d0f..4e30a7e 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -268,7 +268,7 @@ char snapname[BUFSIZ]; /* when doing snapshots, the name of the file */ char *cdevname; /* name of device being checked */ long dev_bsize; /* computed value of DEV_BSIZE */ long secsize; /* actual disk sector size */ -long real_dev_bsize; +u_int real_dev_bsize; /* actual disk sector size, not overriden */ char nflag; /* assume a no response */ char yflag; /* assume a yes response */ int bkgrdflag; /* use a snapshot to run on an active system */ |