X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftarget_replace.c;h=1d7af5c35d0b01a98ab1f9170b6e361fa8f41913;hb=639f00e946bb3182688661a99119aa5f5d6c81b6;hp=6e72f31bacf1613051de321c7eabff3eb0d222bc;hpb=1aaedbca424b623f83a4f6cf837cf91574fe0e67;p=collectd.git diff --git a/src/target_replace.c b/src/target_replace.c index 6e72f31b..1d7af5c3 100644 --- a/src/target_replace.c +++ b/src/target_replace.c @@ -19,44 +19,6 @@ * Florian Forster **/ -/* - * First tell the compiler to stick to the C99 and POSIX standards as close as - * possible. - */ -#ifndef __STRICT_ANSI__ /* {{{ */ -# define __STRICT_ANSI__ -#endif - -#ifndef _ISOC99_SOURCE -# define _ISOC99_SOURCE -#endif - -#ifdef _POSIX_C_SOURCE -# undef _POSIX_C_SOURCE -#endif -#define _POSIX_C_SOURCE 200112L - -#if 0 -/* Single UNIX needed for strdup. */ -#ifdef _XOPEN_SOURCE -# undef _XOPEN_SOURCE -#endif -#define _XOPEN_SOURCE 500 -#endif - -#ifndef _REENTRANT -# define _REENTRANT -#endif - -#ifndef _THREAD_SAFE -# define _THREAD_SAFE -#endif - -#ifdef _GNU_SOURCE -# undef _GNU_SOURCE -#endif -/* }}} */ - #include "collectd.h" #include "common.h" #include "filter_chain.h" @@ -334,8 +296,8 @@ static int tr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ /* && (data->type == NULL) */ && (data->type_instance == NULL)) { - ERROR ("Target `replace': You need to set at lease one of `Host', " - "`Plugin', `PluginInstance', `Type', or `TypeInstance'."); + ERROR ("Target `replace': You need to set at least one of `Host', " + "`Plugin', `PluginInstance' or `TypeInstance'."); status = -1; } @@ -353,7 +315,7 @@ static int tr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ } /* }}} int tr_create */ static int tr_invoke (const data_set_t *ds, value_list_t *vl, /* {{{ */ - notification_meta_t **meta, void **user_data) + notification_meta_t __attribute__((unused)) **meta, void **user_data) { tr_data_t *data;