X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fntpd.c;h=e37b3a1cefad037e286dd4bde0cd640940740898;hb=4f27b7128f48771fb28de092cf56759bf6cb7f45;hp=520427095c27c300636167d13493d3845114afef;hpb=98a4d6de37cfad2e150ee95f22eb79e1b4cd740a;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index 52042709..e37b3a1c 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -51,8 +51,8 @@ #if HAVE_NETINET_TCP_H # include #endif -#if HAVE_SYS_POLL_H -# include +#if HAVE_POLL_H +# include #endif static char *config_keys[] = @@ -882,7 +882,7 @@ static void ntpd_read (void) struct info_peer_summary *ptr; double offset; - char peername[512]; + char peername[NI_MAXHOST]; int refclock_id; ptr = ps + i;