diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-27 01:32:11 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-27 01:32:11 +0000 |
commit | 43b587f58af52deae750d9e67a9b77097e3fc1cd (patch) | |
tree | 10d45ec36ecfc6cf4b937b2ae25cb3b6daa5253b /sbin/fsck_ffs/suj.c | |
parent | 555ff4cf7f5679f262adf70afc8eebde96659329 (diff) | |
download | FreeBSD-src-43b587f58af52deae750d9e67a9b77097e3fc1cd.zip FreeBSD-src-43b587f58af52deae750d9e67a9b77097e3fc1cd.tar.gz |
fsck_ffs: Revert partially the unsigned changes.
Any value of uint16_t will be internally promoted to int so
changing them to an unsigned value doesn't help.
Make clear we want to use uint32_t for closedisk()
X-MFC with: r298551
Diffstat (limited to 'sbin/fsck_ffs/suj.c')
-rw-r--r-- | sbin/fsck_ffs/suj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/suj.c b/sbin/fsck_ffs/suj.c index 6741fbf..c640124 100644 --- a/sbin/fsck_ffs/suj.c +++ b/sbin/fsck_ffs/suj.c @@ -217,7 +217,7 @@ static void closedisk(const char *devnam) { struct csum *cgsum; - u_int i; + uint32_t i; /* * Recompute the fs summary info from correct cs summaries. @@ -2252,7 +2252,7 @@ suj_build(void) struct suj_seg *seg; union jrec *rec; int off; - u_int i; + int i; TAILQ_FOREACH(seg, &allsegs, ss_next) { if (debug) @@ -2540,7 +2540,7 @@ suj_read(void) struct jsegrec *rec; ufs2_daddr_t blk; int readsize; - u_int blocks; + int blocks; int recsize; int size; u_int i; |