From: Hye-Shik Chang Date: Wed, 4 Jan 2006 01:30:17 +0000 (+0000) Subject: Fix a warning from gcc by adding a missed const qualifier. X-Git-Tag: v2.5a0~900 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23f391c6a19beedf5b0c96eaeb636a99298c0121;p=thirdparty%2FPython%2Fcpython.git Fix a warning from gcc by adding a missed const qualifier. --- diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 960e5c093378..f12a93cb5434 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);