fix -Wsign-compare issue
This commit is contained in:
parent
2d873641b5
commit
37e1a87444
@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
|
||||
|
||||
#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 @@ main(int argc, char **argv)
|
||||
if (f < 0)
|
||||
continue;
|
||||
cc = read(f, &wd, sizeof (wd));
|
||||
if (cc < WHDRSIZE) {
|
||||
if (cc < (ssize_t)WHDRSIZE) {
|
||||
(void)close(f);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user