mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
Fix a potential warning
This commit is contained in:
parent
d2f5677762
commit
ba35b98444
2 changed files with 2 additions and 2 deletions
2
rdate.c
2
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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue