summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/common
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/common')
-rw-r--r--plugins/pychrysalide/common/fnv1a.c2
-rw-r--r--plugins/pychrysalide/common/pathname.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/common/fnv1a.c b/plugins/pychrysalide/common/fnv1a.c
index 5caad48..2add487 100644
--- a/plugins/pychrysalide/common/fnv1a.c
+++ b/plugins/pychrysalide/common/fnv1a.c
@@ -62,7 +62,7 @@ static PyObject *py_fnv1a_hash(PyObject *self, PyObject *args)
fnv64_t value; /* Empreinte calculée */
ret = PyArg_ParseTuple(args, "s", &str);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
value = fnv_64a_hash(str);
diff --git a/plugins/pychrysalide/common/pathname.c b/plugins/pychrysalide/common/pathname.c
index e07ebe5..cbe05ed 100644
--- a/plugins/pychrysalide/common/pathname.c
+++ b/plugins/pychrysalide/common/pathname.c
@@ -70,7 +70,7 @@ static PyObject *py_build_relative_filename(PyObject *self, PyObject *args)
char *relative; /* Chemin d'accès construit */
ret = PyArg_ParseTuple(args, "ss", &ref, &target);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
relative = build_relative_filename(ref, target);
@@ -105,7 +105,7 @@ static PyObject *py_build_absolute_filename(PyObject *self, PyObject *args)
char *relative; /* Chemin d'accès construit */
ret = PyArg_ParseTuple(args, "ss", &ref, &target);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
relative = build_absolute_filename(ref, target);