Module Name:    src
Committed By:   lukem
Date:           Tue Apr 14 09:30:25 UTC 2009

Modified Files:
        src/sys/ufs/ext2fs: ext2fs_bswap.c

Log Message:
fix -Wsign-compare issue on bigendian platforms


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/ufs/ext2fs/ext2fs_bswap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/ext2fs/ext2fs_bswap.c
diff -u src/sys/ufs/ext2fs/ext2fs_bswap.c:1.14 src/sys/ufs/ext2fs/ext2fs_bswap.c:1.15
--- src/sys/ufs/ext2fs/ext2fs_bswap.c:1.14	Sun Nov 23 10:09:25 2008
+++ src/sys/ufs/ext2fs/ext2fs_bswap.c	Tue Apr 14 09:30:25 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: ext2fs_bswap.c,v 1.14 2008/11/23 10:09:25 mrg Exp $	*/
+/*	$NetBSD: ext2fs_bswap.c,v 1.15 2009/04/14 09:30:25 lukem Exp $	*/
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_bswap.c,v 1.14 2008/11/23 10:09:25 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_bswap.c,v 1.15 2009/04/14 09:30:25 lukem Exp $");
 
 #include <sys/types.h>
 #include <ufs/ext2fs/ext2fs.h>
@@ -90,7 +90,7 @@
 {
 	int i;
 
-	for (i = 0; i < (size / sizeof(struct  ext2_gd)); i++) {
+	for (i = 0; i < (size / (int)sizeof(struct  ext2_gd)); i++) {
 		new[i].ext2bgd_b_bitmap	= bswap32(old[i].ext2bgd_b_bitmap);
 		new[i].ext2bgd_i_bitmap	= bswap32(old[i].ext2bgd_i_bitmap);
 		new[i].ext2bgd_i_tables	= bswap32(old[i].ext2bgd_i_tables);

Reply via email to