Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e0f05a4

Browse files
enh-googleGerrit Code Review
authored andcommitted
Merge "strptime: add missing const for "GMT" and "UTC"." into main
2 parents 4fffd6c + 7dbddd3 commit e0f05a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/tzcode/strptime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
#define FIELD_TM_YDAY (1 << 3)
6969
#define FIELD_TM_YEAR (1 << 4)
7070

71-
static char gmt[] = { "GMT" };
72-
static char utc[] = { "UTC" };
71+
static const char gmt[] = { "GMT" };
72+
static const char utc[] = { "UTC" };
7373
/* RFC-822/RFC-2822 */
7474
static const char * const nast[5] = {
7575
"EST", "CST", "MST", "PST", "\0\0\0"

0 commit comments

Comments
 (0)