ceph plugin: Use compound literals to initialize a VLA.
authorFlorian Forster <octo@collectd.org>
Fri, 2 Sep 2016 08:41:06 +0000 (10:41 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 2 Sep 2016 08:41:09 +0000 (10:41 +0200)
commit9e2c04a0c5b1b0f4bd2269c29c27fe1f3b1115de
treefef7f29353bad6f30d683ab26bf50f80180fff7c
parent915fb28ee1a2fb80f1f0b73f2869bcf981c932c2
ceph plugin: Use compound literals to initialize a VLA.

This also moves the DEBUG() statement before the sanity check in an
attempt to make scan-build happy: scan-build is under the impression
that the DEBUG() macro would write to the g_num_daemons global variable.

While we're at it, use PRIu32 to print the uint32_t.

Issue: #1835
src/ceph.c