From: Neal Norwitz Date: Sun, 26 Aug 2007 05:32:41 +0000 (+0000) Subject: Fix a couple of warnings X-Git-Tag: v3.0a1~238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5616c6d6904e7863a0400a549fac7d1a50635ed0;p=python Fix a couple of warnings --- diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 9449c1ff9a..3ec24cb7eb 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -266,7 +266,7 @@ getcodec(PyObject *self, PyObject *encoding) "encoding name must be a string."); return NULL; } - enc = PyUnicode_AsString(encoding, NULL); + enc = PyUnicode_AsString(encoding); if (enc == NULL) return NULL; diff --git a/Python/import.c b/Python/import.c index 72138c2ea8..24eeada69d 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2366,7 +2366,7 @@ PyImport_ReloadModule(PyObject *m) "reload() argument must be module"); return NULL; } - name = PyModule_GetName(m); + name = (char*)PyModule_GetName(m); if (name == NULL) return NULL; if (m != PyDict_GetItemString(modules, name)) {