Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/usr.bin/rwho/rwho.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -p -r1.18 -r1.19 --- src/usr.bin/rwho/rwho.c 2008/07/21 14:19:25 1.18 +++ src/usr.bin/rwho/rwho.c 2009/04/13 07:11:37 1.19 @@ -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, 19 #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 @@ -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; }