aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rdate.c2
-rw-r--r--util-linux/rdate.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/rdate.c b/rdate.c
index 915c4bdd4..80b37de37 100644
--- a/rdate.c
+++ b/rdate.c
@@ -68,7 +68,7 @@ time_t askremotedate(char *host)
68 close(fd); 68 close(fd);
69 return(-1); 69 return(-1);
70 } 70 }
71 if (read(fd, &nett, 4) != 4) { /* read time from server */ 71 if (read(fd, (void *)&nett, 4) != 4) { /* read time from server */
72 close(fd); 72 close(fd);
73 errorMsg("%s did not send the complete time\n", host); 73 errorMsg("%s did not send the complete time\n", host);
74 } 74 }
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index 915c4bdd4..80b37de37 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -68,7 +68,7 @@ time_t askremotedate(char *host)
68 close(fd); 68 close(fd);
69 return(-1); 69 return(-1);
70 } 70 }
71 if (read(fd, &nett, 4) != 4) { /* read time from server */ 71 if (read(fd, (void *)&nett, 4) != 4) { /* read time from server */
72 close(fd); 72 close(fd);
73 errorMsg("%s did not send the complete time\n", host); 73 errorMsg("%s did not send the complete time\n", host);
74 } 74 }