mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
20 lines
709 B
Diff
20 lines
709 B
Diff
--- a/pylorcon2/PyLorcon2.c.orig 2022-02-16 23:20:32.000000000 +0800
|
|
+++ b/pylorcon2/PyLorcon2.c 2025-04-22 12:02:33.146371998 +0800
|
|
@@ -1325,7 +1325,7 @@
|
|
|
|
/* Call the error cb function */
|
|
cb_arg = Py_BuildValue("(O)", lorcon_obj);
|
|
- pyresult = PyEval_CallObject(multi->error_cb_func, cb_arg);
|
|
+ pyresult = PyObject_Call(multi->error_cb_func, cb_arg, NULL);
|
|
Py_DECREF(cb_arg);
|
|
|
|
if (pyresult == NULL) {
|
|
@@ -1425,7 +1425,7 @@
|
|
Py_DECREF(packet_tuple_arg);
|
|
|
|
cb_arg = Py_BuildValue("(O)", pypacket);
|
|
- pyresult = PyEval_CallObject(multi->cb_func, cb_arg);
|
|
+ pyresult = PyObject_Call(multi->cb_func, cb_arg, NULL);
|
|
Py_DECREF(cb_arg);
|
|
|
|
if (pyresult == NULL) {
|