X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Flog_logstash.c;h=8ff9045745c708afaec06f4f27e9334b1047eed2;hb=2700666217249cd4794dfc17b4ac3b28f3dca56b;hp=6ebab3bea68236d00492fd2af9bf225d8b2fba5f;hpb=98e2a7f60066d1e1880de632f66a79764776812c;p=collectd.git diff --git a/src/log_logstash.c b/src/log_logstash.c index 6ebab3be..8ff90457 100644 --- a/src/log_logstash.c +++ b/src/log_logstash.c @@ -228,7 +228,7 @@ static int log_logstash_notification(const notification_t *n, if (g == NULL) { fprintf(stderr, "Could not allocate JSON generator.\n"); - return (0); + return 0; } if (yajl_gen_map_open(g) != yajl_gen_status_ok) @@ -315,12 +315,12 @@ static int log_logstash_notification(const notification_t *n, } log_logstash_print(g, LOG_INFO, (n->time != 0) ? n->time : cdtime()); - return (0); + return 0; err: yajl_gen_free(g); fprintf(stderr, "Could not correctly generate JSON notification\n"); - return (0); + return 0; } /* int log_logstash_notification */ void module_register(void) { @@ -331,5 +331,3 @@ void module_register(void) { plugin_register_notification("log_logstash", log_logstash_notification, /* user_data = */ NULL); } /* void module_register (void) */ - -/* vim: set sw=4 ts=4 tw=78 noexpandtab : */