Add xgethostbyname and herror_msg* functions.
diff --git a/rdate.c b/rdate.c
index ead1e7c..8deb35d 100644
--- a/rdate.c
+++ b/rdate.c
@@ -45,8 +45,7 @@
 	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");