Module Name: src
Committed By: plunky
Date: Sat Mar 13 13:45:05 UTC 2010
Modified Files:
src/sbin/raidctl: raidctl.c
Log Message:
fix sign-compare issue
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sbin/raidctl/raidctl.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/raidctl/raidctl.c
diff -u src/sbin/raidctl/raidctl.c:1.46 src/sbin/raidctl/raidctl.c:1.47
--- src/sbin/raidctl/raidctl.c:1.46 Sat Mar 13 07:21:37 2010
+++ src/sbin/raidctl/raidctl.c Sat Mar 13 13:45:05 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: raidctl.c,v 1.46 2010/03/13 07:21:37 jld Exp $ */
+/* $NetBSD: raidctl.c,v 1.47 2010/03/13 13:45:05 plunky Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: raidctl.c,v 1.46 2010/03/13 07:21:37 jld Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.47 2010/03/13 13:45:05 plunky Exp $");
#endif
@@ -483,8 +483,8 @@
rf_output_pmstat(int fd, int raidID)
{
char srs[7];
- int i, j, dr;
- int dis;
+ unsigned int i, j;
+ int dis, dr;
struct rf_pmstat st;
do_ioctl(fd, RAIDFRAME_PARITYMAP_STATUS, &st,