X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_format.c;h=9c0f93459340c9806b07f402ec9352fd75d4358c;hp=d7a747d3f42bcbf4c1d2695bd2ceb36f9a10a3e9;hb=0dc5d6d50c0d95ba4f04b656358b26518d4ce854;hpb=a278779cdf2ded56b89fc404d6914bff7ad7dcbd diff --git a/src/rrd_format.c b/src/rrd_format.c index d7a747d..9c0f934 100644 --- a/src/rrd_format.c +++ b/src/rrd_format.c @@ -1,10 +1,29 @@ /***************************************************************************** - * RRDtool 1.0.33 Copyright Tobias Oetiker, 1999 + * RRDtool 1.2.9 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrd_format.c RRD Database Format helper functions ***************************************************************************** * $Id$ * $Log$ + * Revision 1.5 2004/05/18 18:53:03 oetiker + * big spell checking patch -- slif@bellsouth.net + * + * Revision 1.4 2003/02/13 07:05:27 oetiker + * Find attached the patch I promised to send to you. Please note that there + * are three new source files (src/rrd_is_thread_safe.h, src/rrd_thread_safe.c + * and src/rrd_not_thread_safe.c) and the introduction of librrd_th. This + * library is identical to librrd, but it contains support code for per-thread + * global variables currently used for error information only. This is similar + * to how errno per-thread variables are implemented. librrd_th must be linked + * alongside of libpthred + * + * There is also a new file "THREADS", holding some documentation. + * + * -- Peter Stamfest + * + * Revision 1.3 2002/02/01 20:34:49 oetiker + * fixed version number and date/time + * * Revision 1.2 2001/03/10 23:54:39 oetiker * Support for COMPUTE data sources (CDEF data sources). Removes the RPN * parser and calculator from rrd_graph and puts then in a new file, @@ -41,7 +60,7 @@ enum dst_en dst_conv(char *string) converter(GAUGE,DST_GAUGE) converter(DERIVE,DST_DERIVE) converter(COMPUTE,DST_CDEF) - rrd_set_error("unknown data aquisition function '%s'",string); + rrd_set_error("unknown data acquisition function '%s'",string); return(-1); } @@ -66,7 +85,7 @@ enum cf_en cf_conv(char *string) long ds_match(rrd_t *rrd,char *ds_nam){ - long i; + unsigned long i; for(i=0;istat_head->ds_cnt;i++) if ((strcmp(ds_nam,rrd->ds_def[i].ds_nam))==0) return i;