diff options
Diffstat (limited to 'rdate.c')
-rw-r--r-- | rdate.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -45,8 +45,7 @@ static time_t askremotedate(const char *host) | |||
45 | unsigned long int nett, localt; | 45 | unsigned long int nett, localt; |
46 | int fd; | 46 | int fd; |
47 | 47 | ||
48 | if (!(h = gethostbyname(host))) /* get the IP addr */ | 48 | h = xgethostbyname(host); /* get the IP addr */ |
49 | perror_msg_and_die("%s", host); | ||
50 | 49 | ||
51 | if ((tserv = getservbyname("time", "tcp")) == NULL) /* find port # */ | 50 | if ((tserv = getservbyname("time", "tcp")) == NULL) /* find port # */ |
52 | perror_msg_and_die("%s", "time"); | 51 | perror_msg_and_die("%s", "time"); |