diff options
author | wtc%netscape.com <devnull@localhost> | 2001-09-15 04:47:14 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-09-15 04:47:14 +0000 |
commit | 9eb01a66fcb71572ae2267a5f1ee4f88c91c4ece (patch) | |
tree | 9d64b1f676676ecef081719b4e38a611e8f0135f | |
parent | 1e52c5a4792888ee1a1ae0fdb61b496a99627e6f (diff) | |
download | nspr-hg-9eb01a66fcb71572ae2267a5f1ee4f88c91c4ece.tar.gz |
Added 'const' to two arrays of constants. Thanks to Simon Fraser for
suggesting this.
-rw-r--r-- | pr/src/misc/prtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/misc/prtime.c b/pr/src/misc/prtime.c index 33df013f..28b1f49b 100644 --- a/pr/src/misc/prtime.c +++ b/pr/src/misc/prtime.c @@ -64,7 +64,7 @@ * each month, where index 1 is January, and day 0 is January 1. */ -static int lastDayOfMonth[2][13] = { +static const int lastDayOfMonth[2][13] = { {-1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364}, {-1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365} }; @@ -73,7 +73,7 @@ static int lastDayOfMonth[2][13] = { * The number of days in a month */ -static PRInt8 nDays[2][12] = { +static const PRInt8 nDays[2][12] = { {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} }; |