From e2f92de6a90ae11a6d8e01bd17fd88b005516835 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 11 Nov 2017 13:06:26 +0200 Subject: Add the const qualifier to "char *" variables that refer to literal strings. (#4370) --- Python/pyhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pyhash.c') diff --git a/Python/pyhash.c b/Python/pyhash.c index 8a6bd60c10..aa49eeb35b 100644 --- a/Python/pyhash.c +++ b/Python/pyhash.c @@ -196,7 +196,7 @@ _PyHash_Fini(void) #ifdef Py_HASH_STATS int i; Py_ssize_t total = 0; - char *fmt = "%2i %8" PY_FORMAT_SIZE_T "d %8" PY_FORMAT_SIZE_T "d\n"; + const char *fmt = "%2i %8" PY_FORMAT_SIZE_T "d %8" PY_FORMAT_SIZE_T "d\n"; fprintf(stderr, "len calls total\n"); for (i = 1; i <= Py_HASH_STATS_MAX; i++) { -- cgit v1.2.1