Module Name:    src
Committed By:   lukem
Date:           Mon Apr  6 12:33:11 UTC 2009

Modified Files:
        src/sbin/svhlabel: svhlabel.c

Log Message:
fix sign-compare issue


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/svhlabel/svhlabel.c

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

Modified files:

Index: src/sbin/svhlabel/svhlabel.c
diff -u src/sbin/svhlabel/svhlabel.c:1.4 src/sbin/svhlabel/svhlabel.c:1.5
--- src/sbin/svhlabel/svhlabel.c:1.4	Sat Jun 30 02:05:27 2007
+++ src/sbin/svhlabel/svhlabel.c	Mon Apr  6 12:33:11 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: svhlabel.c,v 1.4 2007/06/30 02:05:27 rumble Exp $	*/
+/*	$NetBSD: svhlabel.c,v 1.5 2009/04/06 12:33:11 lukem Exp $	*/
 
 /*
  * Copyright (C) 2007 Stephen M. Rumble.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: svhlabel.c,v 1.4 2007/06/30 02:05:27 rumble Exp $");
+__RCSID("$NetBSD: svhlabel.c,v 1.5 2009/04/06 12:33:11 lukem Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -153,7 +153,7 @@
 			break;
 
 		case SGI_PTYPE_VOLUME:
-			if (label.d_secperunit != vh->partitions[i].blocks)
+			if (label.d_secperunit != (uint32_t)vh->partitions[i].blocks)
 				changed++;
 			label.d_secperunit = vh->partitions[i].blocks; 
 			continue;

Reply via email to