diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-09-21 04:05:38 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-09-21 04:05:38 +0000 |
commit | ba35b984448810f6ead7579f85b28cf089f64033 (patch) | |
tree | 3b4414b2fdf353b4a419d030795373b17de703a3 | |
parent | d2f567776241013fedf5b690cd74fb6baad78b1c (diff) | |
download | busybox-ba35b984448810f6ead7579f85b28cf089f64033.tar.gz |
Fix a potential warning
-rw-r--r-- | rdate.c | 2 | ||||
-rw-r--r-- | util-linux/rdate.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ time_t askremotedate(char *host) sin.sin_port= tserv->s_port; sin.sin_family = AF_INET; - if (connect(fd, &sin, sizeof(sin)) < 0) { /* connect to time server */ + if (connect(fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) { /* connect to time server */ errorMsg("%s: %s\n", host, strerror(errno)); close(fd); return(-1); diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 0668d302a..20536d24b 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -63,7 +63,7 @@ time_t askremotedate(char *host) sin.sin_port= tserv->s_port; sin.sin_family = AF_INET; - if (connect(fd, &sin, sizeof(sin)) < 0) { /* connect to time server */ + if (connect(fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) { /* connect to time server */ errorMsg("%s: %s\n", host, strerror(errno)); close(fd); return(-1); |