patch-ntpclient_c 385 B

1234567891011
  1. --- ntpclient-2010.orig/ntpclient.c 2010-12-31 18:28:36.000000000 +0100
  2. +++ ntpclient-2010/ntpclient.c 2014-01-03 12:20:27.000000000 +0100
  3. @@ -441,7 +441,7 @@ static void stuff_net_addr(struct in_add
  4. struct hostent *ntpserver;
  5. ntpserver=gethostbyname(hostname);
  6. if (ntpserver == NULL) {
  7. - herror(hostname);
  8. + perror(hostname);
  9. exit(1);
  10. }
  11. if (ntpserver->h_length != 4) {