Module Name: src
Committed By: lukem
Date: Wed Apr 15 06:02:37 UTC 2009
Modified Files:
src/usr.sbin/fwctl: eui64.c
Log Message:
Fix -Wsign-compare issue
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/fwctl/eui64.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/fwctl/eui64.c
diff -u src/usr.sbin/fwctl/eui64.c:1.1 src/usr.sbin/fwctl/eui64.c:1.2
--- src/usr.sbin/fwctl/eui64.c:1.1 Mon Jul 11 15:35:25 2005
+++ src/usr.sbin/fwctl/eui64.c Wed Apr 15 06:02:37 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: eui64.c,v 1.1 2005/07/11 15:35:25 kiyohara Exp $ */
+/* $NetBSD: eui64.c,v 1.2 2009/04/15 06:02:37 lukem Exp $ */
/*
* Copyright 2004 The Aerospace Corporation. All rights reserved.
*
@@ -213,7 +213,7 @@
i = snprintf(a, len, "%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x",
id->octet[0], id->octet[1], id->octet[2], id->octet[3],
id->octet[4], id->octet[5], id->octet[6], id->octet[7]);
- if (i < 23 || i >= len)
+ if (i < 23 || i >= (int)len)
return (-1);
return (0);
}