Module Name: src
Committed By: nakayama
Date: Thu Apr 30 07:45:29 UTC 2009
Modified Files:
src/usr.sbin/eeprom: eehandlers.c
Log Message:
WARNS=4 fixes.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/eeprom/eehandlers.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/eeprom/eehandlers.c
diff -u src/usr.sbin/eeprom/eehandlers.c:1.14 src/usr.sbin/eeprom/eehandlers.c:1.15
--- src/usr.sbin/eeprom/eehandlers.c:1.14 Mon Apr 28 20:24:15 2008
+++ src/usr.sbin/eeprom/eehandlers.c Thu Apr 30 07:45:28 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: eehandlers.c,v 1.14 2008/04/28 20:24:15 martin Exp $ */
+/* $NetBSD: eehandlers.c,v 1.15 2009/04/30 07:45:28 nakayama Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -178,7 +178,7 @@
int i;
if (arg) {
- for (i = 0; i < (strlen(arg) - 1); ++i)
+ for (i = 0; i < (int)strlen(arg) - 1; ++i)
if (!isdigit((unsigned char)arg[i]))
BARF(ktent);
num32 = atoi(arg);
@@ -204,7 +204,7 @@
int i;
if (arg) {
- for (i = 0; i < (strlen(arg) - 1); ++i)
+ for (i = 0; i < (int)strlen(arg) - 1; ++i)
if (!isdigit((unsigned char)arg[i]))
BARF(ktent);
num32 = atoi(arg);
@@ -384,7 +384,7 @@
int i;
if (arg) {
- for (i = 0; i < (strlen(arg) - 1); ++i)
+ for (i = 0; i < (int)strlen(arg) - 1; ++i)
if (!isdigit((unsigned char)arg[i]))
BARF(ktent);
kbd2 = atoi(arg);