diff options
author | Guido van Rossum <guido@python.org> | 1999-12-21 15:55:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-12-21 15:55:47 (GMT) |
commit | 96b5ee88ee8b2122c549bda1f73330428a189ff0 (patch) | |
tree | a1609379331e2b0571a0bf2cea99fcd5c3b3b9fa | |
parent | 5731575449690d7821cb57e2af9388e14c8fba74 (diff) | |
download | cpython-96b5ee88ee8b2122c549bda1f73330428a189ff0.zip cpython-96b5ee88ee8b2122c549bda1f73330428a189ff0.tar.gz cpython-96b5ee88ee8b2122c549bda1f73330428a189ff0.tar.bz2 |
Vladimir Marangozov:
Here's a patch that avoids a warning caused by the "const char* pathname"
declaration for _PyImport_GetDynLoadFunc (in dynload_aix). The "aix_load"
function's 1st arg is prototyped as "char *pathname".
-rw-r--r-- | Python/dynload_aix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c index 18a5bd0..f8f4317 100644 --- a/Python/dynload_aix.c +++ b/Python/dynload_aix.c @@ -221,7 +221,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname, if (!staticmodlistptr) if (aix_getoldmodules(&staticmodlistptr) == -1) return NULL; - p = (dl_funcptr) aix_load(pathname, L_NOAUTODEFER, 0); + p = (dl_funcptr) aix_load((char *)pathname, L_NOAUTODEFER, 0); if (p == NULL) { aix_loaderror(pathname); return NULL; |