diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 17:53:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 17:53:18 (GMT) |
commit | 2d06e8445587d9b4d0bf79bdb08ab4743b780249 (patch) | |
tree | 9708850d5ae4855466435687cf36f162834d2694 /Modules/_dbmmodule.c | |
parent | ea8c43152fdaa508ec189062b09a470f1b4ba535 (diff) | |
download | cpython-2d06e8445587d9b4d0bf79bdb08ab4743b780249.zip cpython-2d06e8445587d9b4d0bf79bdb08ab4743b780249.tar.gz cpython-2d06e8445587d9b4d0bf79bdb08ab4743b780249.tar.bz2 |
Issue #25923: Added the const qualifier to static constant arrays.
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r-- | Modules/_dbmmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c index 02899e4..5e7ec1a 100644 --- a/Modules/_dbmmodule.c +++ b/Modules/_dbmmodule.c @@ -14,16 +14,16 @@ */ #if defined(HAVE_NDBM_H) #include <ndbm.h> -static char *which_dbm = "GNU gdbm"; /* EMX port of GDBM */ +static const char which_dbm[] = "GNU gdbm"; /* EMX port of GDBM */ #elif defined(HAVE_GDBM_NDBM_H) #include <gdbm/ndbm.h> -static char *which_dbm = "GNU gdbm"; +static const char which_dbm[] = "GNU gdbm"; #elif defined(HAVE_GDBM_DASH_NDBM_H) #include <gdbm-ndbm.h> -static char *which_dbm = "GNU gdbm"; +static const char which_dbm[] = "GNU gdbm"; #elif defined(HAVE_BERKDB_H) #include <db.h> -static char *which_dbm = "Berkeley DB"; +static const char which_dbm[] = "Berkeley DB"; #else #error "No ndbm.h available!" #endif |