From b17c529ec8416c0da9937bb933e24cf951d376c7 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Fri, 29 Apr 2016 03:04:56 +0000 Subject: [PATCH] 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 --- sbin/fsck_ffs/suj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fsck_ffs/suj.c b/sbin/fsck_ffs/suj.c index 9d6a2eccdc97..58949c9e3cd8 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.