summaryrefslogtreecommitdiff
path: root/python/rpmmodule.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-02 14:33:14 +0000
committerjbj <devnull@localhost>1999-11-02 14:33:14 +0000
commit7fc3a97733080a03e8bb3872bd37019db483b93c (patch)
tree3a61e2602283c9adf7441ed5acd1068cbf16fd98 /python/rpmmodule.c
parent65a08c9e60c0bff0e09cfdcc98ca97910ab24ac5 (diff)
downloadrpm-7fc3a97733080a03e8bb3872bd37019db483b93c.tar.gz
rpm-7fc3a97733080a03e8bb3872bd37019db483b93c.tar.bz2
rpm-7fc3a97733080a03e8bb3872bd37019db483b93c.zip
Add ref/deref/new/fileno/open vectors to FDIO_t.
Hide fdOpen/ufdOpen, use {fdio,ufdio}->open throughout. url.c: Create ref counted abstract urlinfo type with debugging. url.c: Rename functions to urlNew/urlFree/urlFreeCache for consistency. rpmio.c: Create ref counted abstract FD_t type with debugging. rpmio.c: Create private struct _FD_s type. cpio.c: Create fd[GS]etCpioPos to preserve FD_t abstraction. CVS patchset: 3414 CVS date: 1999/11/02 14:33:14
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r--python/rpmmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index d32f636a5..f8e32dfd2 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -558,7 +558,7 @@ static PyObject * rpmHeaderFromFile(PyObject * self, PyObject * args) {
PyObject * list;
if (!PyArg_ParseTuple(args, "s", &filespec)) return NULL;
- fd = fdOpen(filespec, O_RDONLY, 0);
+ fd = fdio->open(filespec, O_RDONLY, 0);
if (!fd) {
PyErr_SetFromErrno(pyrpmError);