From 3dc0bd2ffb20854268fe2992839109e7d3ef3469 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 13 Oct 2021 19:15:41 +0200 Subject: caja-python: do not discard const modifier in PyImport_ImportModuleEx PyObject *PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist) --- src/caja-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caja-python.c b/src/caja-python.c index 60841b6..932d681 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -107,7 +107,7 @@ caja_python_load_file(GTypeModule *type_module, } main_locals = PyModule_GetDict(main_module); - module = PyImport_ImportModuleEx((char *) filename, main_locals, main_locals, NULL); + module = PyImport_ImportModuleEx(filename, main_locals, main_locals, NULL); if (!module) { PyErr_Print(); -- cgit v1.2.1