X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpf.c;h=225d536ebeddcf3f0b969ae251fb2ba8aacb681c;hb=aef15b632b9f415e5ebfadd4e41fa8a3c19407ee;hp=29f3a3d539f19ecefceb6d5f9c09201ef7fb8dd3;hpb=a09f2fdf0450eb76317e1b7575a12ffb926068f4;p=collectd.git diff --git a/src/pf.c b/src/pf.c index 29f3a3d5..225d536e 100644 --- a/src/pf.c +++ b/src/pf.c @@ -26,12 +26,12 @@ #if HAVE_SYS_IOCTL_H # include #endif -#if HAVE_SYS_SOCKET_H -# include -#endif #if HAVE_NET_IF_H # include #endif +#if HAVE_NETINET_IN_H +# include +#endif #include @@ -106,7 +106,6 @@ static int pf_read (void) } close (fd); - fd = -1; if (!state.running) {