Tree wide: Unify initialization of multi-value value lists.
authorFlorian Forster <octo@collectd.org>
Wed, 14 Sep 2016 06:21:47 +0000 (08:21 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 14 Sep 2016 06:59:00 +0000 (08:59 +0200)
commitf7649ae4a3270efe73f55bd00ca7fb89f269b8ec
treeeaef3c8e05b7b7bbaa01e7392777f23e61711cb0
parent24a099f4089569f2e1863c6ab455b844c7cacd3f
Tree wide: Unify initialization of multi-value value lists.

Use struct initializers to initialize the array like so:

  value_t values[] = {
    /* ... */
  };

Then initialize the value_list_t with:

  vl.values = values;
  vl.values_len = STATIC_ARRAY_SIZE (values);
23 files changed:
src/disk.c
src/dns.c
src/hugepages.c
src/interface.c
src/ipvs.c
src/load.c
src/madwifi.c
src/memcached.c
src/mysql.c
src/netapp.c
src/netlink.c
src/openvpn.c
src/processes.c
src/routeros.c
src/serial.c
src/smart.c
src/tape.c
src/target_v5upgrade.c
src/teamspeak2.c
src/virt.c
src/vmem.c
src/vserver.c
src/zfs_arc.c