mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #25923: Added the const qualifier to static constant arrays.
This commit is contained in:
parent
ea8c43152f
commit
2d06e84455
44 changed files with 139 additions and 134 deletions
|
@ -732,10 +732,10 @@ _asctime(struct tm *timeptr)
|
|||
{
|
||||
/* Inspired by Open Group reference implementation available at
|
||||
* http://pubs.opengroup.org/onlinepubs/009695399/functions/asctime.html */
|
||||
static char wday_name[7][4] = {
|
||||
static const char wday_name[7][4] = {
|
||||
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
|
||||
};
|
||||
static char mon_name[12][4] = {
|
||||
static const char mon_name[12][4] = {
|
||||
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue