Skip to content

Commit 09cec8b

Browse files
cosmo0920edsiper
authored andcommitted
strptime: Use FLB_TRUE and FLB_FALSE for boolean value
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent e053ee1 commit 09cec8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flb_strptime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ again: switch (c = *fmt++) {
591591
case 'Z':
592592
{
593593
const flb_tz_abbr_info_t *tz_info;
594-
int found_in_known = 0;
594+
int found_in_known = FLB_FALSE;
595595
size_t abbr_len;
596596

597597
for (tz_info = flb_known_timezones; tz_info->abbr != NULL; ++tz_info) {
@@ -602,7 +602,7 @@ again: switch (c = *fmt++) {
602602
flb_tm_gmtoff(tm) = tz_info->offset_sec;
603603
flb_tm_zone(tm) = tz_info->abbr;
604604
bp += abbr_len;
605-
found_in_known = 1;
605+
found_in_known = FLB_TRUE;
606606
break;
607607
}
608608
}

0 commit comments

Comments
 (0)