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 c515e3c..5b6914c 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,