]> git.ipfire.org Git - thirdparty/collectd.git/commit
gmond plugin: Improve `mc_handle_metadata_msg()`. 4167/head
authorFlorian Forster <octo@collectd.org>
Sat, 25 Nov 2023 23:10:52 +0000 (00:10 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 25 Nov 2023 23:10:52 +0000 (00:10 +0100)
commitb0be06e471c96aef38495df656f7f1480316f1af
tree62df4b841514e922bed3b3c0bbe28dd647b70fd7
parent859882b1234c81ac454534e8bf8b1bd87c696066
gmond plugin: Improve `mc_handle_metadata_msg()`.

This function was not properly formatted. While there:

* Handle the error instead of indenting the successful flow.
* Declare variables late.
* Initialize variables when declaring them.
src/gmond.c