From d1ee7e39f72411705a42a1d5b3fb0bf7afba22cf Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 26 Oct 2000 07:57:27 +0000 Subject: [PATCH] Silence a warning, --- rdate.c | 2 +- util-linux/rdate.c | 2 +- 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) 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); } 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) 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); }