X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftarget_replace.c;h=1d7af5c35d0b01a98ab1f9170b6e361fa8f41913;hb=43fcfd6a48b506b03114dd9637caf8fc211b47db;hp=3f983c860b0df520862940aca61c9f9b183cfc82;hpb=6d86a97190a193863aadc252f20f6b9dba61c263;p=collectd.git diff --git a/src/target_replace.c b/src/target_replace.c index 3f983c86..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; }