Module Name: src
Committed By: lukem
Date: Mon Apr 13 07:11:37 UTC 2009
Modified Files:
src/usr.bin/rwho: rwho.c
Log Message:
fix -Wsign-compare issue
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/rwho/rwho.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.bin/rwho/rwho.c
diff -u src/usr.bin/rwho/rwho.c:1.18 src/usr.bin/rwho/rwho.c:1.19
--- src/usr.bin/rwho/rwho.c:1.18 Mon Jul 21 14:19:25 2008
+++ src/usr.bin/rwho/rwho.c Mon Apr 13 07:11:37 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rwho.c,v 1.18 2008/07/21 14:19:25 lukem Exp $ */
+/* $NetBSD: rwho.c,v 1.19 2009/04/13 07:11:37 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)rwho.c 8.1 (Berkeley) 6/6/93";*/
-__RCSID("$NetBSD: rwho.c,v 1.18 2008/07/21 14:19:25 lukem Exp $");
+__RCSID("$NetBSD: rwho.c,v 1.19 2009/04/13 07:11:37 lukem Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -135,7 +135,7 @@
if (f < 0)
continue;
cc = read(f, &wd, sizeof (wd));
- if (cc < WHDRSIZE) {
+ if (cc < (ssize_t)WHDRSIZE) {
(void)close(f);
continue;
}