Module Name: src
Committed By: lukem
Date: Sat Apr 18 13:05:55 UTC 2009
Modified Files:
src/usr.sbin/rwhod: rwhod.c
Log Message:
Fix -Wsign-compare issue
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/rwhod/rwhod.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/rwhod/rwhod.c
diff -u src/usr.sbin/rwhod/rwhod.c:1.37 src/usr.sbin/rwhod/rwhod.c:1.38
--- src/usr.sbin/rwhod/rwhod.c:1.37 Mon Jul 21 13:36:59 2008
+++ src/usr.sbin/rwhod/rwhod.c Sat Apr 18 13:05:54 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rwhod.c,v 1.37 2008/07/21 13:36:59 lukem Exp $ */
+/* $NetBSD: rwhod.c,v 1.38 2009/04/18 13:05:54 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: rwhod.c,v 1.37 2008/07/21 13:36:59 lukem Exp $");
+__RCSID("$NetBSD: rwhod.c,v 1.38 2009/04/18 13:05:54 lukem Exp $");
#endif
#endif /* not lint */
@@ -278,7 +278,7 @@
ntohs(from.sin_port));
return;
}
- if (cc < WHDRSIZE) {
+ if (cc < (int)WHDRSIZE) {
syslog(LOG_WARNING, "Short packet from %s",
inet_ntoa(from.sin_addr));
return;