X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmadwifi.c;h=60ac3c8cb05959837875f78461c40dc26bdd11e3;hb=733fc645b6389d1f42aef8f1c1631f1db7d58196;hp=aa1f0955da9df08231abd6141c75e60500468011;hpb=be126043c2be20399d7670fe194645292018bde0;p=collectd.git diff --git a/src/madwifi.c b/src/madwifi.c index aa1f0955..60ac3c8c 100644 --- a/src/madwifi.c +++ b/src/madwifi.c @@ -99,8 +99,8 @@ #error "No applicable input method." #endif -#include #include "madwifi.h" +#include struct stat_spec { uint16_t flags; @@ -347,10 +347,10 @@ static const char *config_keys[] = {"Interface", "IgnoreSelected", "Source", "MiscAdd", "MiscRemove", "MiscSet"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static ignorelist_t *ignorelist = NULL; +static ignorelist_t *ignorelist; static int use_sysfs = 1; -static int init_state = 0; +static int init_state; static inline int item_watched(int i) { assert(i >= 0); @@ -561,7 +561,7 @@ static void submit_antx(const char *dev, const char *name, u_int32_t *vals, static inline void macaddr_to_str(char *buf, size_t bufsize, const uint8_t mac[IEEE80211_ADDR_LEN]) { snprintf(buf, bufsize, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], - mac[2], mac[3], mac[4], mac[5]); + mac[2], mac[3], mac[4], mac[5]); } static void process_stat_struct(int which, const void *ptr, const char *dev,