From 7885ad000050949f99433ec9baa0babf83709052 Mon Sep 17 00:00:00 2001 From: ru Date: Mon, 23 Oct 2000 12:18:34 +0000 Subject: -Wall cleanup. PR: 22187 --- usr.bin/finger/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/finger/net.c') 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 */ - 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; -- cgit v1.1