Return to rwho.c CVS log | Up to [cvs.NetBSD.org] / src / usr.bin / rwho |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.18, 2008/07/21 14:19:25 | version 1.19, 2009/04/13 07:11:37 | ||
---|---|---|---|
|
|
||
if (f < 0) | if (f < 0) | ||
continue; | continue; | ||
cc = read(f, &wd, sizeof (wd)); | cc = read(f, &wd, sizeof (wd)); | ||
if (cc < WHDRSIZE) { | if (cc < (ssize_t)WHDRSIZE) { | ||
(void)close(f); | (void)close(f); | ||
continue; | continue; | ||
} | } |