author | Florian Forster <octo@collectd.org> | |
Wed, 14 Sep 2016 06:21:47 +0000 (08:21 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 14 Sep 2016 06:59:00 +0000 (08:59 +0200) | ||
commit | f7649ae4a3270efe73f55bd00ca7fb89f269b8ec | |
tree | eaef3c8e05b7b7bbaa01e7392777f23e61711cb0 | tree | snapshot |
parent | 24a099f4089569f2e1863c6ab455b844c7cacd3f | commit | diff |
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);
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 | diff | blob | history | |
src/dns.c | diff | blob | history | |
src/hugepages.c | diff | blob | history | |
src/interface.c | diff | blob | history | |
src/ipvs.c | diff | blob | history | |
src/load.c | diff | blob | history | |
src/madwifi.c | diff | blob | history | |
src/memcached.c | diff | blob | history | |
src/mysql.c | diff | blob | history | |
src/netapp.c | diff | blob | history | |
src/netlink.c | diff | blob | history | |
src/openvpn.c | diff | blob | history | |
src/processes.c | diff | blob | history | |
src/routeros.c | diff | blob | history | |
src/serial.c | diff | blob | history | |
src/smart.c | diff | blob | history | |
src/tape.c | diff | blob | history | |
src/target_v5upgrade.c | diff | blob | history | |
src/teamspeak2.c | diff | blob | history | |
src/virt.c | diff | blob | history | |
src/vmem.c | diff | blob | history | |
src/vserver.c | diff | blob | history | |
src/zfs_arc.c | diff | blob | history |