diff options
author | jbj <devnull@localhost> | 2003-05-04 17:34:53 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-05-04 17:34:53 +0000 |
commit | 3db8afedc08c3f7425438ff029b5413456e6969d (patch) | |
tree | d82bdbf2827072889c0f4433778d2895c3df2ac9 /python/rpmfts-py.c | |
parent | 66964f525cee898d418d6aa0da10a785b44f6692 (diff) | |
download | rpm-3db8afedc08c3f7425438ff029b5413456e6969d.tar.gz rpm-3db8afedc08c3f7425438ff029b5413456e6969d.tar.bz2 rpm-3db8afedc08c3f7425438ff029b5413456e6969d.zip |
Use getattro/setattro throughout.
Convert to mpfprintlin from diddled mpprintln.
CVS patchset: 6811
CVS date: 2003/05/04 17:34:53
Diffstat (limited to 'python/rpmfts-py.c')
-rw-r--r-- | python/rpmfts-py.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/python/rpmfts-py.c b/python/rpmfts-py.c index f95a7417e..4388aa2f5 100644 --- a/python/rpmfts-py.c +++ b/python/rpmfts-py.c @@ -121,7 +121,7 @@ rpmfts_debug(__FUNCTION__, s); case RPMFTS_OPEN: if (s->ftsp == NULL) { Py_BEGIN_ALLOW_THREADS - s->ftsp = Fts_open((char *const *)s->roots, s->options, (int (*)())s->compare); + s->ftsp = Fts_open((char *const *)s->roots, s->options, (int (*)(const FTSENT **, const FTSENT **))s->compare); Py_END_ALLOW_THREADS } break; @@ -302,18 +302,18 @@ static PyMemberDef rpmfts_members[] = { {NULL, 0, 0, 0, NULL} }; -static PyObject * rpmfts_getattro(rpmftsObject * s, PyObject * n) +static PyObject * rpmfts_getattro(PyObject * o, PyObject * n) /*@*/ { -rpmfts_debug(__FUNCTION__, s); - return PyObject_GenericGetAttr((PyObject *)s, n); +rpmfts_debug(__FUNCTION__, (rpmftsObject *)o); + return PyObject_GenericGetAttr(o, n); } -static int rpmfts_setattro(rpmftsObject * s, PyObject * n, PyObject * v) +static int rpmfts_setattro(PyObject * o, PyObject * n, PyObject * v) /*@*/ { -rpmfts_debug(__FUNCTION__, s); - return PyObject_GenericSetAttr((PyObject *)s, n, v); +rpmfts_debug(__FUNCTION__, (rpmftsObject *)o); + return PyObject_GenericSetAttr(o, n, v); } /* ---------- */ |