diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2006-01-04 01:30:17 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2006-01-04 01:30:17 (GMT) |
commit | 23f391c6a19beedf5b0c96eaeb636a99298c0121 (patch) | |
tree | 8177657e8025158d04c7e5765cd57d0071f2cc4e /Python | |
parent | 6bfd8de9e623f7eb48d52ddf48d8809f639f239b (diff) | |
download | cpython-23f391c6a19beedf5b0c96eaeb636a99298c0121.zip cpython-23f391c6a19beedf5b0c96eaeb636a99298c0121.tar.gz cpython-23f391c6a19beedf5b0c96eaeb636a99298c0121.tar.bz2 |
Fix a warning from gcc by adding a missed const qualifier.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dynload_shlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 960e5c0..f12a93c 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -130,7 +130,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, handle = dlopen(pathname, dlopenflags); if (handle == NULL) { - char *error = dlerror(); + const char *error = dlerror(); if (error == NULL) error = "unknown dlopen() error"; PyErr_SetString(PyExc_ImportError, error); |