Skip to content

Commit 39786b6

Browse files
authored
Fix missing const qualifier in bson_tm::tm_zone (#1077)
Co-authored-by: ii14 <[email protected]>
1 parent 2966c67 commit 39786b6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/libbson/src/bson/bson-timegm-private.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ BSON_BEGIN_DECLS
2929

3030
/* avoid system-dependent struct tm definitions */
3131
struct bson_tm {
32-
int64_t tm_sec; /* seconds after the minute [0-60] */
33-
int64_t tm_min; /* minutes after the hour [0-59] */
34-
int64_t tm_hour; /* hours since midnight [0-23] */
35-
int64_t tm_mday; /* day of the month [1-31] */
36-
int64_t tm_mon; /* months since January [0-11] */
37-
int64_t tm_year; /* years since 1900 */
38-
int64_t tm_wday; /* days since Sunday [0-6] */
39-
int64_t tm_yday; /* days since January 1 [0-365] */
40-
int64_t tm_isdst; /* Daylight Savings Time flag */
41-
int64_t tm_gmtoff; /* offset from CUT in seconds */
42-
char *tm_zone; /* timezone abbreviation */
32+
int64_t tm_sec; /* seconds after the minute [0-60] */
33+
int64_t tm_min; /* minutes after the hour [0-59] */
34+
int64_t tm_hour; /* hours since midnight [0-23] */
35+
int64_t tm_mday; /* day of the month [1-31] */
36+
int64_t tm_mon; /* months since January [0-11] */
37+
int64_t tm_year; /* years since 1900 */
38+
int64_t tm_wday; /* days since Sunday [0-6] */
39+
int64_t tm_yday; /* days since January 1 [0-365] */
40+
int64_t tm_isdst; /* Daylight Savings Time flag */
41+
int64_t tm_gmtoff; /* offset from CUT in seconds */
42+
const char *tm_zone; /* timezone abbreviation */
4343
};
4444

4545
int64_t

0 commit comments

Comments
 (0)