author | Florian Forster <octo@collectd.org> | |
Fri, 2 Sep 2016 08:41:06 +0000 (10:41 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 2 Sep 2016 08:41:09 +0000 (10:41 +0200) | ||
commit | 9e2c04a0c5b1b0f4bd2269c29c27fe1f3b1115de | |
tree | fef7f29353bad6f30d683ab26bf50f80180fff7c | tree | snapshot |
parent | 915fb28ee1a2fb80f1f0b73f2869bcf981c932c2 | commit | diff |
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
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 | diff | blob | history |