X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fwrite_log.c;h=fdc99ef3b67004d4185a8b6b16c3f35f641682c5;hp=5ecb1823f7bed41863cc7d53e27f994f5106fe9a;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=76fb10bf790e35dd6caca13c4bb5d0f86c517370 diff --git a/src/write_log.c b/src/write_log.c index 5ecb1823..fdc99ef3 100644 --- a/src/write_log.c +++ b/src/write_log.c @@ -54,11 +54,11 @@ static int wl_write_graphite(const data_set_t *ds, const value_list_t *vl) { status = format_graphite(buffer, sizeof(buffer), ds, vl, NULL, NULL, '_', 0); if (status != 0) /* error message has been printed already. */ - return (status); + return status; INFO("write_log values:\n%s", buffer); - return (0); + return 0; } /* int wl_write_graphite */ static int wl_write_json(const data_set_t *ds, const value_list_t *vl) { @@ -78,7 +78,7 @@ static int wl_write_json(const data_set_t *ds, const value_list_t *vl) { INFO("write_log values:\n%s", buffer); - return (0); + return 0; } /* int wl_write_json */ static int wl_write(const data_set_t *ds, const value_list_t *vl, @@ -91,7 +91,7 @@ static int wl_write(const data_set_t *ds, const value_list_t *vl, status = wl_write_json(ds, vl); } - return (status); + return status; } static int wl_config(oconfig_item_t *ci) /* {{{ */ @@ -119,16 +119,16 @@ static int wl_config(oconfig_item_t *ci) /* {{{ */ else { ERROR("write_log plugin: Unknown format `%s' for option `%s'.", str, child->key); - return (-EINVAL); + return -EINVAL; } } else { ERROR("write_log plugin: Invalid configuration option: `%s'.", child->key); - return (-EINVAL); + return -EINVAL; } } - return (0); + return 0; } /* }}} int wl_config */ void module_register(void) {