mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-29 14:40:25 +00:00
Fix a potential warning
This commit is contained in:
parent
d2f5677762
commit
ba35b98444
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 New Issue
Block a user