Fix a potential warning

This commit is contained in:
Eric Andersen 2000-09-21 04:05:38 +00:00
parent d2f5677762
commit ba35b98444
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);