X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_error.c;h=d8c6eedcb18b15792c1c90ad06777e76971e723a;hp=e368ca755f86198426e83e50e626f8ad5489f2da;hb=22129bb15a8ad204cf8a5e88e8834ec0b51908c0;hpb=7bd35b8d099910071a57c66687f6ef79c5df9a5c diff --git a/src/rrd_error.c b/src/rrd_error.c index e368ca7..d8c6eed 100644 --- a/src/rrd_error.c +++ b/src/rrd_error.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc7 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 ***************************************************************************** * rrd_error.c Common Header File ***************************************************************************** @@ -78,7 +78,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( - struct rrd_context *rrd_ctx, + rrd_context_t * rrd_ctx, char *fmt, ...) { @@ -96,19 +96,19 @@ void rrd_set_error_r( } int rrd_test_error_r( - struct rrd_context *rrd_ctx) + rrd_context_t * rrd_ctx) { return rrd_ctx->rrd_error[0] != '\0'; } void rrd_clear_error_r( - struct rrd_context *rrd_ctx) + rrd_context_t * rrd_ctx) { rrd_ctx->rrd_error[0] = '\0'; } char *rrd_get_error_r( - struct rrd_context *rrd_ctx) + rrd_context_t * rrd_ctx) { return rrd_ctx->rrd_error; } @@ -116,11 +116,10 @@ char *rrd_get_error_r( /* PS: Should we move this to some other file? It is not really error related. */ -struct rrd_context *rrd_new_context( +rrd_context_t *rrd_new_context( void) { - struct rrd_context *rrd_ctx = - (struct rrd_context *) malloc(sizeof(struct rrd_context)); + rrd_context_t *rrd_ctx = (rrd_context_t *) malloc(sizeof(rrd_context_t)); if (!rrd_ctx) { return NULL; @@ -132,7 +131,7 @@ struct rrd_context *rrd_new_context( } void rrd_free_context( - struct rrd_context *rrd_ctx) + rrd_context_t * rrd_ctx) { if (rrd_ctx) { free(rrd_ctx); @@ -141,7 +140,7 @@ void rrd_free_context( #if 0 void rrd_globalize_error( - struct rrd_context *rrd_ctx) + rrd_context_t * rrd_ctx) { if (rrd_ctx) { rrd_set_error(rrd_ctx->rrd_error);