X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_open.c;h=66d1865e7d3562e2e62e8479b93c3ad5d69434e9;hb=86a5012e6ecc922be53f8c621bbcd2c5e1e46755;hp=443a1a5652a50c01a023a47c6fb51773241d364d;hpb=59ffebeb1600f4bd7b0ff79fb2bc08941d3a0195;p=rrdtool.git diff --git a/src/rrd_open.c b/src/rrd_open.c index 443a1a5..66d1865 100644 --- a/src/rrd_open.c +++ b/src/rrd_open.c @@ -5,6 +5,9 @@ ***************************************************************************** * $Id$ * $Log$ + * Revision 1.10 2004/05/26 22:11:12 oetiker + * reduce compiler warnings. Many small fixes. -- Mike Slifcak + * * Revision 1.9 2003/04/29 21:56:49 oetiker * readline in rrd_open.c reads the file in 8 KB blocks, and calls realloc for * each block. realloc is very slow in Mac OS X for huge blocks, e.g. when @@ -66,7 +69,7 @@ /* positioned to the first cdp in the first rra */ int -rrd_open(char *file_name, FILE **in_file, rrd_t *rrd, int rdwr) +rrd_open(const char *file_name, FILE **in_file, rrd_t *rrd, int rdwr) { @@ -190,7 +193,7 @@ void rrd_freemem(void *mem) if (mem) free(mem); } -int readfile(char *file_name, char **buffer, int skipfirst){ +int readfile(const char *file_name, char **buffer, int skipfirst){ long writecnt=0,totalcnt = MEMBLK; long offset = 0; FILE *input=NULL;