commit | 85b0f5beb182cca8b1607accce2caab87ee29835 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 10:16:47 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 10:16:47 2016 +0200 |
tree | 0e55ae3180c2836152ceb4f9689fc7ed1ccb71c5 | |
parent | a98c4a984b34f887076f4171b1e3303e164cbddf [diff] [blame] |
Added the const qualifier to char* variables that refer to readonly internal UTF-8 represenatation of Unicode objects.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index feaa212..7f6cd4d 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c
@@ -5982,7 +5982,7 @@ PyObject *hobj = NULL; PyObject *pobj = (PyObject *)NULL; char pbuf[30]; - char *hptr, *pptr; + const char *hptr, *pptr; int family, socktype, protocol, flags; int error; PyObject *all = (PyObject *)NULL;