Silence a warning,
authorEric Andersen <andersen@codepoet.org>
Thu, 26 Oct 2000 07:57:27 +0000 (07:57 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 26 Oct 2000 07:57:27 +0000 (07:57 -0000)
rdate.c
util-linux/rdate.c

diff --git a/rdate.c b/rdate.c
index 915c4bdd4cff3f10de2cbe561709856da6ab9670..80b37de37c9d3303f6fedccf781975dd5cdd2976 100644 (file)
--- a/rdate.c
+++ b/rdate.c
@@ -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);
        }
index 915c4bdd4cff3f10de2cbe561709856da6ab9670..80b37de37c9d3303f6fedccf781975dd5cdd2976 100644 (file)
@@ -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);
        }