X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fnetwork_parse.c;h=34ea21941192e440cd5bb90b6ee601760db8793c;hb=a0412f28fc15eb04a9a630678a97b6bce2d71fb1;hp=14c1b2827ed6bc9dba615f9a0617713c595d6d8a;hpb=f42de42e5caa71fd8da9e79eb452ade6e9f20519;p=collectd.git diff --git a/src/libcollectdclient/network_parse.c b/src/libcollectdclient/network_parse.c index 14c1b282..34ea2194 100644 --- a/src/libcollectdclient/network_parse.c +++ b/src/libcollectdclient/network_parse.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -220,7 +221,7 @@ static int parse_time(uint16_t type, void *payload, size_t payload_size, static double ntohd(double val) /* {{{ */ { - static int config = 0; + static int config; union { uint8_t byte[8];