X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmeta_data.c;h=10ccd4baab7f83f3bbc407fb6703d1a7b8b39671;hb=94f2ff236902035a1d549bbe393402ec30ee245f;hp=1412f7effe92a5369995113959025987fc949994;hpb=98fef31471541485002b5b87afa8991a280190d6;p=collectd.git diff --git a/src/meta_data.c b/src/meta_data.c index 1412f7ef..10ccd4ba 100644 --- a/src/meta_data.c +++ b/src/meta_data.c @@ -19,44 +19,6 @@ * Florian octo 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 "plugin.h" #include "meta_data.h" @@ -421,7 +383,7 @@ int meta_data_get_string (meta_data_t *md, /* {{{ */ return (-ENOENT); } - if (e->type != MD_TYPE_SIGNED_INT) + if (e->type != MD_TYPE_STRING) { ERROR ("meta_data_get_signed_int: Type mismatch for key `%s'", e->key); pthread_mutex_unlock (&md->lock);