summaryrefslogtreecommitdiff
path: root/lib/libcompat/4.3
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-12-14 07:01:30 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-12-14 07:01:30 +0000
commit7196c98e87e63255bcea0194a88a1798dcc1fcd1 (patch)
treefb423ee1d3ff156918f4d0810c2f4793e058cbd6 /lib/libcompat/4.3
parentb94f63a5c1a2254594572cfc6fd890258ddb5361 (diff)
Clean up lint & compile warnings
Diffstat (limited to 'lib/libcompat/4.3')
-rw-r--r--lib/libcompat/4.3/rexec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c
index 2ce19427029..346caa01874 100644
--- a/lib/libcompat/4.3/rexec.c
+++ b/lib/libcompat/4.3/rexec.c
@@ -59,8 +59,9 @@ rexec(ahost, rport, name, pass, cmd, fd2p)
{
struct sockaddr_in sin, sin2, from;
struct hostent *hp;
+ unsigned timo = 1;
u_short port;
- int s, timo = 1, s3;
+ int s, s3;
char c;
hp = gethostbyname(*ahost);
@@ -79,7 +80,7 @@ retry:
sin.sin_family = hp->h_addrtype;
sin.sin_len = sizeof(sin);
sin.sin_port = rport;
- bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length);
+ bcopy(hp->h_addr, (char *)&sin.sin_addr, (size_t)hp->h_length);
if (connect(s, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
if (errno == ECONNREFUSED && timo <= 16) {
(void) close(s);