Silence a warning,
This commit is contained in:
1 parent
84bdc75c7e
commit
d1ee7e39f7
2 files changed
+2
-2
No files matched your search
@@ -68,7 +68,7 @@ time_t askremotedate(char *host)
|
||||
close(fd);
|
||||
return(-1);
|
||||
}
|
||||
if (read(fd, &nett, 4) != 4) { /* read time from server */
|
||||
if (read(fd, (void *)&nett, 4) != 4) { /* read time from server */
|
||||
close(fd);
|
||||
errorMsg("%s did not send the complete time\n", host);
|
||||
}
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ time_t askremotedate(char *host)
|
||||
close(fd);
|
||||
return(-1);
|
||||
}
|
||||
if (read(fd, &nett, 4) != 4) { /* read time from server */
|
||||
if (read(fd, (void *)&nett, 4) != 4) { /* read time from server */
|
||||
close(fd);
|
||||
errorMsg("%s did not send the complete time\n", host);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user