summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-11-11 11:06:26 (GMT)
committerGitHub <noreply@github.com>2017-11-11 11:06:26 (GMT)
commite2f92de6a90ae11a6d8e01bd17fd88b005516835 (patch)
treea5bc255a98f488e5ecf195dc3f55665e9afecc47 /Modules/mmapmodule.c
parente184cfd7bf8bcfd160e3b611d4351ca3ce52d9e2 (diff)
downloadcpython-e2f92de6a90ae11a6d8e01bd17fd88b005516835.zip
cpython-e2f92de6a90ae11a6d8e01bd17fd88b005516835.tar.gz
cpython-e2f92de6a90ae11a6d8e01bd17fd88b005516835.tar.bz2
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index ea7baf4..6cf4545 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1210,7 +1210,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
DWORD off_lo; /* lower 32 bits of offset */
DWORD size_hi; /* upper 32 bits of size */
DWORD size_lo; /* lower 32 bits of size */
- char *tagname = "";
+ const char *tagname = "";
DWORD dwErr = 0;
int fileno;
HANDLE fh = 0;