git » libfiu » commit 090eb55

python: Fix function names in some PyArg_ParseTuple() calls

author Alberto Bertogli
2009-05-22 04:30:31 UTC
committer Alberto Bertogli
2009-05-22 04:30:31 UTC
parent 1eb108d7d209537ce606b21d110831514b238f30

python: Fix function names in some PyArg_ParseTuple() calls

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

bindings/python/fiu_ll.c +2 -2

diff --git a/bindings/python/fiu_ll.c b/bindings/python/fiu_ll.c
index 59e3b16..c1f5844 100644
--- a/bindings/python/fiu_ll.c
+++ b/bindings/python/fiu_ll.c
@@ -138,7 +138,7 @@ static PyObject *enable_external(PyObject *self, PyObject *args)
 	unsigned int flags;
 	PyObject *py_external_cb;
 
-	if (!PyArg_ParseTuple(args, "siIO:enable_random", &name, &failnum,
+	if (!PyArg_ParseTuple(args, "siIO:enable_external", &name, &failnum,
 				&flags, &py_external_cb))
 		return NULL;
 
@@ -162,7 +162,7 @@ static PyObject *disable(PyObject *self, PyObject *args)
 {
 	char *name;
 
-	if (!PyArg_ParseTuple(args, "s:fail", &name))
+	if (!PyArg_ParseTuple(args, "s:disable", &name))
 		return NULL;
 
 	return PyLong_FromLong(fiu_disable(name));