From f681f38ca91a2a1e2f7ce1265c924df9c9fecdfa Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 22 Apr 2008 21:40:45 +0000 Subject: [PATCH] fix for #148 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1332 a5681a0c-68f1-0310-ab6d-d61299d08faa --- bindings/python/rrd_extra.h | 1 - bindings/python/rrdtoolmodule.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bindings/python/rrd_extra.h b/bindings/python/rrd_extra.h index 63c604d..2af673b 100644 --- a/bindings/python/rrd_extra.h +++ b/bindings/python/rrd_extra.h @@ -53,7 +53,6 @@ extern "C" { int rrd_open( char *file_name, - FILE ** in_file, rrd_t *rrd, int rdwr); int readfile( diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 74b7fb0..fa96ebd 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -411,19 +411,17 @@ static PyObject *PyRRD_info( { PyObject *r, *t, *ds; rrd_t rrd; - FILE *in_file; char *filename; unsigned long i, j; if (!PyArg_ParseTuple(args, "s:info", &filename)) return NULL; - if (rrd_open(filename, &in_file, &rrd, RRD_READONLY) == -1) { + if (!rrd_open(filename, &rrd, RRD_READONLY) == -1) { PyErr_SetString(ErrorObject, rrd_get_error()); rrd_clear_error(); return NULL; } - fclose(in_file); #define DICTSET_STR(dict, name, value) \ t = PyString_FromString(value); \ -- 2.30.2