summaryrefslogtreecommitdiffstats
path: root/rpmmodule
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-04 15:51:09 +0000
committerErik Troan <ewt@redhat.com>1999-08-04 15:51:09 +0000
commit4c37d06f9d35613e7473a289786658afbe45e19f (patch)
tree1d9385b215a72603cbabaa4bd2b4ea66129afe0d /rpmmodule
parentd23e527136e27e1a616a4833ee3bb5a0b83c8407 (diff)
downloadanaconda-4c37d06f9d35613e7473a289786658afbe45e19f.tar.gz
anaconda-4c37d06f9d35613e7473a289786658afbe45e19f.tar.xz
anaconda-4c37d06f9d35613e7473a289786658afbe45e19f.zip
some functions were parsing args improperly
Diffstat (limited to 'rpmmodule')
-rw-r--r--rpmmodule/rpmmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index c1b9d361c..41490e4d5 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -385,7 +385,7 @@ static void rpmdbDealloc(rpmdbObject * s) {
static PyObject * rpmdbFirst(rpmdbObject * s, PyObject * args) {
int first;
- if (!PyArg_Parse(args, "")) return NULL;
+ if (!PyArg_ParseTuple(args, "")) return NULL;
first = rpmdbFirstRecNum(s->db);
@@ -400,7 +400,7 @@ static PyObject * rpmdbFirst(rpmdbObject * s, PyObject * args) {
static PyObject * rpmdbNext(rpmdbObject * s, PyObject * args) {
int where;
- if (!PyArg_Parse(args, "i", &where)) return NULL;
+ if (!PyArg_ParseTuple(args, "i", &where)) return NULL;
where = rpmdbNextRecNum(s->db, where);
@@ -809,7 +809,7 @@ static int rpmtransSetAttr(rpmtransObject * o, char * name,
int i;
if (!strcmp(name, "scriptFd")) {
- if (!PyArg_Parse(val, "i", &i)) return 0;
+ if (!PyArg_ParseTuple(val, "i", &i)) return 0;
if (i < 0) {
PyErr_SetString(PyExc_TypeError, "bad file descriptor");
return -1;
@@ -923,7 +923,7 @@ static void * tsCallback(const Header h, const rpmCallbackType what,
}
if (what == RPMCALLBACK_INST_OPEN_FILE) {
- if (!PyArg_Parse(result, "i", &fd)) {
+ if (!PyArg_ParseTuple(result, "i", &fd)) {
cbInfo->pythonError = 1;
return NULL;
}