Code

apache plugin: End statements with semi-colons.
authorFlorian Forster <octo@collectd.org>
Sun, 11 Sep 2016 18:31:31 +0000 (20:31 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 11 Sep 2016 18:31:31 +0000 (20:31 +0200)
If only I knew why this wasn't considered a syntax error …

src/apache.c

index c515e3c5db57a45bc04e706db387d02b5a27ba24..5b6914c4d2e0fc040fe83f78f3cdf6a5f62b6c37 100644 (file)
@@ -250,7 +250,7 @@ static int config_add (oconfig_item_t *ci)
                ssnprintf (callback_name, sizeof (callback_name),
                                "apache/%s/%s",
                                (st->host != NULL) ? st->host : hostname_g,
-                               (st->name != NULL) ? st->name : "default"),
+                               (st->name != NULL) ? st->name : "default");
 
                status = plugin_register_complex_read (/* group = */ NULL,
                                /* name      = */ callback_name,