summaryrefslogtreecommitdiff
path: root/c/cdlopen.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-09-27 09:38:15 +0200
committerArmin Rigo <arigo@tunes.org>2017-09-27 09:38:15 +0200
commitfd5d394a95feb8bedbbe7323a6045f5a9f00e0ec (patch)
treed8c7f9933a4d50395080aec0b765212b113401dc /c/cdlopen.c
parentf172af3bf3252a62853ca64c1f08d92127f1989e (diff)
downloadcffi-fd5d394a95feb8bedbbe7323a6045f5a9f00e0ec.tar.gz
"char *" => "const char *" until Python 3.7 is happy
Diffstat (limited to 'c/cdlopen.c')
-rw-r--r--c/cdlopen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/cdlopen.c b/c/cdlopen.c
index 032bd3f..d1e952f 100644
--- a/c/cdlopen.c
+++ b/c/cdlopen.c
@@ -1,6 +1,7 @@
/* ffi.dlopen() interface with dlopen()/dlsym()/dlclose() */
-static void *cdlopen_fetch(PyObject *libname, void *libhandle, char *symbol)
+static void *cdlopen_fetch(PyObject *libname, void *libhandle,
+ const char *symbol)
{
void *address;