summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea8c705)
raw | patch | inline | side by side (parent: ea8c705)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 22 Apr 2008 21:40:45 +0000 (21:40 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 22 Apr 2008 21:40:45 +0000 (21:40 +0000) |
bindings/python/rrd_extra.h | patch | blob | history | |
bindings/python/rrdtoolmodule.c | patch | blob | history |
index 63c604d6022646e253ad2f26def4bc3715600790..2af673b5af12de6daf1ed362e57145f4044c6609 100644 (file)
int rrd_open(
char *file_name,
- FILE ** in_file,
rrd_t *rrd,
int rdwr);
int readfile(
index 74b7fb09ec72501c820e105b71f979a0117da961..fa96ebd9553d52076393c3f132b5690727b096e9 100644 (file)
{
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); \