X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fpf.c;h=c9aeb5ff22f3be3b48c295e16f242f530a112858;hb=3fae5596643f1e361eb18c3d65448f8bc02fdd80;hp=112e28f3554dee66efb5dd5dcd3fb15843ad4e85;hpb=22651d8d4dc49e24bbac2cd34e0642dcf3639c97;p=collectd.git diff --git a/src/pf.c b/src/pf.c index 112e28f3..c9aeb5ff 100644 --- a/src/pf.c +++ b/src/pf.c @@ -26,9 +26,6 @@ #if HAVE_SYS_IOCTL_H # include #endif -#if HAVE_SYS_SOCKET_H -# include -#endif #if HAVE_NET_IF_H # include #endif @@ -97,7 +94,6 @@ static int pf_read (void) return (-1); } - memset (&state, 0, sizeof (state)); status = ioctl (fd, DIOCGETSTATUS, &state); if (status != 0) { @@ -109,7 +105,6 @@ static int pf_read (void) } close (fd); - fd = -1; if (!state.running) {