diff options
author | delphij <delphij@FreeBSD.org> | 2009-12-13 03:14:06 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-12-13 03:14:06 +0000 |
commit | 0842b7d53ffede64468e775f5c79965e3d9e48ae (patch) | |
tree | ec0e60a06ede057b5afe3f1a6eccc05036f5c424 /usr.bin/finger | |
parent | 7510724a04e34e0c4cdf7551cd6e74fb053368e8 (diff) | |
download | FreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.zip FreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.tar.gz |
Revert most part of 200420 as requested, as more review and polish is
needed.
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/lprint.c | 2 | ||||
-rw-r--r-- | usr.bin/finger/net.c | 2 | ||||
-rw-r--r-- | usr.bin/finger/util.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c index d656693..848bbee 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 <= (int)(LINE_LEN - strlen(header) - 5)) { + if (sb.st_size <= LINE_LEN - strlen(header) - 5) { nr = read(fd, tbuf, sizeof(tbuf)); if (nr <= 0) { (void)close(fd); diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index 703ff60..5260a2d 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -230,7 +230,7 @@ trying(const struct addrinfo *ai) printf("Trying %s...\n", buf); } -static void +void cleanup(int sig __unused) { #define ERRSTR "Timed out.\n" diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 3eabd34..a84c711 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -120,7 +120,7 @@ enter_lastlog(PERSON *pn) } if (fd == -1 || lseek(fd, (long)pn->uid * sizeof(ll), SEEK_SET) != - (off_t)(pn->uid * sizeof(ll)) || + (long)pn->uid * sizeof(ll) || read(fd, (char *)&ll, sizeof(ll)) != sizeof(ll)) { /* as if never logged in */ ll.ll_line[0] = ll.ll_host[0] = '\0'; |