commit | c55b8d41c15640fa1637f919b3f6eca6e781047a | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Wed May 16 15:40:51 2001 +0000 |
committer | Matt Kraai <kraai@debian.org> | Wed May 16 15:40:51 2001 +0000 |
tree | 03c1fca61c1b577b7c527d2b8482c5b7f6972bcd | |
parent | 59df6f73988b103f0dcfffeaec10642527336c5e [diff] [blame] |
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");