From ba35b984448810f6ead7579f85b28cf089f64033 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Sep 2000 04:05:38 +0000 Subject: Fix a potential warning --- util-linux/rdate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux/rdate.c') 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); -- cgit v1.2.3