svn commit: r298765 - stable/9/sbin/fsck_ffs

Pedro F. Giffuni pfg at FreeBSD.org
Fri Apr 29 03:06:43 UTC 2016


Author: pfg
Date: Fri Apr 29 03:06:42 2016
New Revision: 298765
URL: https://svnweb.freebsd.org/changeset/base/298765

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/9/sbin/fsck_ffs/suj.c
Directory Properties:
  stable/9/sbin/fsck_ffs/   (props changed)

Modified: stable/9/sbin/fsck_ffs/suj.c
==============================================================================
--- stable/9/sbin/fsck_ffs/suj.c	Fri Apr 29 03:04:56 2016	(r298764)
+++ stable/9/sbin/fsck_ffs/suj.c	Fri Apr 29 03:06:42 2016	(r298765)
@@ -216,7 +216,7 @@ static void
 closedisk(const char *devnam)
 {
 	struct csum *cgsum;
-	int i;
+	uint32_t i;
 
 	/*
 	 * Recompute the fs summary info from correct cs summaries.


More information about the svn-src-stable mailing list