X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_error.c;h=d816c22fcc8b22c69be019c1e7682142f08474b5;hp=a865fe4eb8c79bef484713477cbb73d7993613f9;hb=f0a82ae15cafb6ad47ea0c9f74754820e92e2078;hpb=a5eb18ad8c70e530a2e28ed435a0f52da0f5bee0 diff --git a/src/rrd_error.c b/src/rrd_error.c index a865fe4..d816c22 100644 --- a/src/rrd_error.c +++ b/src/rrd_error.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc8 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 ***************************************************************************** * rrd_error.c Common Header File ***************************************************************************** @@ -30,9 +30,11 @@ * *************************************************************************** */ -#include "rrd_tool.h" +#include #include +#include "rrd_tool.h" + #define MAXLEN 4096 #define ERRBUFLEN 256 #define CTX (rrd_get_context()) @@ -78,7 +80,7 @@ char *rrd_get_error( context. Using these functions would require to change each and every function containing any of the non _r versions... */ void rrd_set_error_r( - rrd_context_t *rrd_ctx, + rrd_context_t * rrd_ctx, char *fmt, ...) { @@ -96,19 +98,19 @@ void rrd_set_error_r( } int rrd_test_error_r( - rrd_context_t *rrd_ctx) + rrd_context_t * rrd_ctx) { return rrd_ctx->rrd_error[0] != '\0'; } void rrd_clear_error_r( - rrd_context_t *rrd_ctx) + rrd_context_t * rrd_ctx) { rrd_ctx->rrd_error[0] = '\0'; } char *rrd_get_error_r( - rrd_context_t *rrd_ctx) + rrd_context_t * rrd_ctx) { return rrd_ctx->rrd_error; } @@ -119,8 +121,7 @@ char *rrd_get_error_r( rrd_context_t *rrd_new_context( void) { - rrd_context_t *rrd_ctx = - (rrd_context_t *) malloc(sizeof(rrd_context_t)); + rrd_context_t *rrd_ctx = (rrd_context_t *) malloc(sizeof(rrd_context_t)); if (!rrd_ctx) { return NULL; @@ -132,7 +133,7 @@ rrd_context_t *rrd_new_context( } void rrd_free_context( - rrd_context_t *rrd_ctx) + rrd_context_t * rrd_ctx) { if (rrd_ctx) { free(rrd_ctx); @@ -141,7 +142,7 @@ void rrd_free_context( #if 0 void rrd_globalize_error( - rrd_context_t *rrd_ctx) + rrd_context_t * rrd_ctx) { if (rrd_ctx) { rrd_set_error(rrd_ctx->rrd_error);