diff options
author | ru <ru@FreeBSD.org> | 2000-10-23 12:18:34 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-10-23 12:18:34 +0000 |
commit | 7885ad000050949f99433ec9baa0babf83709052 (patch) | |
tree | 92873b0fb1e6a6053e23c2b62d1613084b6e8d00 /usr.bin/finger/net.c | |
parent | 7b50f6cc73be199a04244c314383955c70c6ae82 (diff) | |
download | FreeBSD-src-7885ad000050949f99433ec9baa0babf83709052.zip FreeBSD-src-7885ad000050949f99433ec9baa0babf83709052.tar.gz |
-Wall cleanup.
PR: 22187
Diffstat (limited to 'usr.bin/finger/net.c')
-rw-r--r-- | usr.bin/finger/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index 427d233..388ea33 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -118,7 +118,7 @@ netfinger(name) static int do_protocol(const char *name, const struct addrinfo *ai) { - int cnt, error, line_len, s; + int cnt, line_len, s; register FILE *fp; register int c, lastc; struct iovec iov[3]; @@ -145,7 +145,7 @@ do_protocol(const char *name, const struct addrinfo *ai) iov[msg.msg_iovlen++].iov_len = 3; } /* send the name followed by <CR><LF> */ - iov[msg.msg_iovlen].iov_base = name; + iov[msg.msg_iovlen].iov_base = (char *)name; iov[msg.msg_iovlen++].iov_len = strlen(name); iov[msg.msg_iovlen].iov_base = "\r\n"; iov[msg.msg_iovlen++].iov_len = 2; |