Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2016 03:04:56 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r298764 - stable/10/sbin/fsck_ffs
Message-ID:  <201604290304.u3T34uEb091358@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Fri Apr 29 03:04:56 2016
New Revision: 298764
URL: https://svnweb.freebsd.org/changeset/base/298764

Log:
  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

Modified:
  stable/10/sbin/fsck_ffs/suj.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/fsck_ffs/suj.c
==============================================================================
--- stable/10/sbin/fsck_ffs/suj.c	Fri Apr 29 02:56:03 2016	(r298763)
+++ stable/10/sbin/fsck_ffs/suj.c	Fri Apr 29 03:04:56 2016	(r298764)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604290304.u3T34uEb091358>