svn commit: r203769 - head/sbin/tunefs

Kirk McKusick mckusick at FreeBSD.org
Thu Feb 11 06:33:36 UTC 2010


Author: mckusick
Date: Thu Feb 11 06:33:35 2010
New Revision: 203769
URL: http://svn.freebsd.org/changeset/base/203769

Log:
  Quiet spurious warnings.

Modified:
  head/sbin/tunefs/tunefs.c

Modified: head/sbin/tunefs/tunefs.c
==============================================================================
--- head/sbin/tunefs/tunefs.c	Thu Feb 11 06:22:38 2010	(r203768)
+++ head/sbin/tunefs/tunefs.c	Thu Feb 11 06:33:35 2010	(r203769)
@@ -301,7 +301,7 @@ main(int argc, char *argv[])
 	}
 	if (fflag) {
 		name = "average file size";
-		if (sblock.fs_avgfilesize == fvalue) {
+		if (sblock.fs_avgfilesize == (unsigned)fvalue) {
 			warnx("%s remains unchanged as %d", name, fvalue);
 		}
 		else {
@@ -427,7 +427,7 @@ main(int argc, char *argv[])
 	}
 	if (sflag) {
 		name = "expected number of files per directory";
-		if (sblock.fs_avgfpdir == svalue) {
+		if (sblock.fs_avgfpdir == (unsigned)svalue) {
 			warnx("%s remains unchanged as %d", name, svalue);
 		}
 		else {


More information about the svn-src-all mailing list