[rrd-developers] [PATCH 2/2] Silence warnings when STRERROR_R_CHAR_P is not defined.

Tobias Oetiker tobi at oetiker.ch
Thu Jul 9 22:14:56 CEST 2009


Hi Kevin,

thanks
tobi

Today kevin brintnall wrote:

> ---
>  src/rrd_thread_safe.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/rrd_thread_safe.c b/src/rrd_thread_safe.c
> index 6e30115..e1e3cbe 100644
> --- a/src/rrd_thread_safe.c
> +++ b/src/rrd_thread_safe.c
> @@ -66,7 +66,7 @@ const char *rrd_strerror(
>      /* Even though POSIX/XSI requires "strerror_r" to return an "int", some
>       * systems (e.g. the GNU libc) return a "char *" _and_ ignore the second
>       * argument ... -tokkee */
> -#if STRERROR_R_CHAR_P
> +#ifdef STRERROR_R_CHAR_P
>      ret = strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr));
>      if ((! ret) || (*ret == '\0')) {
>          if (*ctx->lib_errstr != '\0')
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list