aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/rdate.c')
-rw-r--r--util-linux/rdate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index ead1e7c7d..8deb35d14 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -45,8 +45,7 @@ static time_t askremotedate(const char *host)
unsigned long int nett, localt;
int fd;
- if (!(h = gethostbyname(host))) /* get the IP addr */
- perror_msg_and_die("%s", host);
+ h = xgethostbyname(host); /* get the IP addr */
if ((tserv = getservbyname("time", "tcp")) == NULL) /* find port # */
perror_msg_and_die("%s", "time");