aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/finger/lprint.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-12-11 23:35:38 +0000
committerXin LI <delphij@FreeBSD.org>2009-12-11 23:35:38 +0000
commit6f2d322192a3949db6e0f0b4bad4c763abc52bed (patch)
tree1c4d97908b52dc5263d006038b9af6b5ca886ca8 /usr.bin/finger/lprint.c
parente87862f53a119884d2103da7ba52cf7d14426803 (diff)
downloadsrc-6f2d322192a3949db6e0f0b4bad4c763abc52bed.tar.gz
src-6f2d322192a3949db6e0f0b4bad4c763abc52bed.zip
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
Notes
Notes: svn path=/head/; revision=200420
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 848bbeeeb324..d656693f0aab 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);