diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-29 03:04:56 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-29 03:04:56 +0000 |
commit | a9fdf41ec64def827399987a18b5ae4bb505b248 (patch) | |
tree | 05d831fc7494d5fad69ec0b2da637c6f12021fd9 /sbin/fsck_ffs | |
parent | 9bfc50da6e3207cd7618dc30f5d0256a8177d934 (diff) | |
download | FreeBSD-src-a9fdf41ec64def827399987a18b5ae4bb505b248.zip FreeBSD-src-a9fdf41ec64def827399987a18b5ae4bb505b248.tar.gz |
MFC r298551, r298679, r298680:
fsck_ffs: use uint32_t for closedisk().
fs_ncg is of type uint32_t, and we were indexing it with an int.
Fixed this using an unsigned type.
Reviewed by: mckusick
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r-- | sbin/fsck_ffs/suj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/suj.c b/sbin/fsck_ffs/suj.c index 9d6a2ec..58949c9 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; - int i; + uint32_t i; /* * Recompute the fs summary info from correct cs summaries. |