summaryrefslogtreecommitdiff
path: root/c/_cffi_backend.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2018-06-01 19:32:06 +0200
committerArmin Rigo <arigo@tunes.org>2018-06-01 19:32:06 +0200
commit070c9cf3ce1fa5a5fa5cce2d5cb61d75c3a1edf8 (patch)
treed65e2ce506e0b2eac9b9b8a375790e69a8bae3ef /c/_cffi_backend.c
parent400d51b8d83752c717eb71d3a9ed38d1e8d53c07 (diff)
downloadcffi-070c9cf3ce1fa5a5fa5cce2d5cb61d75c3a1edf8.tar.gz
Py3.7: fix const-correctness
Diffstat (limited to 'c/_cffi_backend.c')
-rw-r--r--c/_cffi_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
index edacb15..b728c6a 100644
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -4154,7 +4154,7 @@ static PyTypeObject dl_type = {
dl_methods, /* tp_methods */
};
-static void *b_do_dlopen(PyObject *args, char **p_printable_filename,
+static void *b_do_dlopen(PyObject *args, const char **p_printable_filename,
PyObject **p_temp)
{
/* Logic to call the correct version of dlopen(). Returns NULL in case of error.
@@ -4224,7 +4224,7 @@ static void *b_do_dlopen(PyObject *args, char **p_printable_filename,
static PyObject *b_load_library(PyObject *self, PyObject *args)
{
- char *printable_filename;
+ const char *printable_filename;
PyObject *temp;
void *handle;
DynLibObject *dlobj = NULL;