X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Flog_logstash.c;h=28cc34c83fb17b9fc907039507033503ace055f4;hp=8df43136164d1b2d79a7d511b03b3e918e75d3b4;hb=7111bb6df7628edce3a8e538b386fbe27633a191;hpb=42b8d7550d029ed9aef6f25e3eb2009c1f18b144 diff --git a/src/log_logstash.c b/src/log_logstash.c index 8df43136..28cc34c8 100644 --- a/src/log_logstash.c +++ b/src/log_logstash.c @@ -236,7 +236,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) @@ -323,12 +323,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) { @@ -339,5 +339,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 : */