summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/lprint.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-11 23:35:38 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-11 23:35:38 +0000
commitb963db4652a0bf1718825e8e1a9bc93e87b7a80f (patch)
tree1c4d97908b52dc5263d006038b9af6b5ca886ca8 /usr.bin/finger/lprint.c
parentf8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f (diff)
downloadFreeBSD-src-b963db4652a0bf1718825e8e1a9bc93e87b7a80f.zip
FreeBSD-src-b963db4652a0bf1718825e8e1a9bc93e87b7a80f.tar.gz
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
Diffstat (limited to 'usr.bin/finger/lprint.c')
-rw-r--r--usr.bin/finger/lprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c
index 848bbee..d656693 100644
--- a/usr.bin/finger/lprint.c
+++ b/usr.bin/finger/lprint.c
@@ -310,7 +310,7 @@ show_text(const char *directory, const char *file_name, const char *header)
return(0);
/* If short enough, and no newlines, show it on a single line.*/
- if (sb.st_size <= LINE_LEN - strlen(header) - 5) {
+ if (sb.st_size <= (int)(LINE_LEN - strlen(header) - 5)) {
nr = read(fd, tbuf, sizeof(tbuf));
if (nr <= 0) {
(void)close(fd);
OpenPOWER on IntegriCloud