diff options
author | Rosen Penev | 2020-12-21 19:55:06 -0800 |
---|---|---|
committer | Nikias Bassen | 2021-06-22 01:11:06 +0200 |
commit | 904cbea78fb91438eafc867ccd8a9f9ab66eb5ec (patch) | |
tree | dffee33f0723af7c142a3f690f3f25df6050db9b /src/time64.c | |
parent | 0efe610c1d0bfd6bded30bacd47809544db84882 (diff) | |
download | libplist-904cbea78fb91438eafc867ccd8a9f9ab66eb5ec.tar.gz libplist-904cbea78fb91438eafc867ccd8a9f9ab66eb5ec.tar.bz2 |
[clang-tidy] Avoid global non-const variables
Found with cppcoreguidelines-avoid-non-const-global-variables
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/time64.c')
-rw-r--r-- | src/time64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time64.c b/src/time64.c index b62bc86..53932de 100644 --- a/src/time64.c +++ b/src/time64.c @@ -59,11 +59,11 @@ static const short julian_days_by_month[2][12] = { {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335}, }; -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" }; |