From 7b5d98877622f2bea24c9dd745dfcf312df31a87 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 9 Jun 2021 14:49:57 -0400 Subject: util: Rename fallthrough to BFS_FALLTHROUGH This avoids shadowing the actually standard name fallthrough. --- parse.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 5983430..83004fb 100644 --- a/parse.c +++ b/parse.c @@ -961,16 +961,16 @@ static struct expr *parse_time(struct parser_state *state, int field, int arg2) switch (*tail) { case 'w': time *= 7; - fallthrough; + BFS_FALLTHROUGH; case 'd': time *= 24; - fallthrough; + BFS_FALLTHROUGH; case 'h': time *= 60; - fallthrough; + BFS_FALLTHROUGH; case 'm': time *= 60; - fallthrough; + BFS_FALLTHROUGH; case 's': break; default: @@ -1873,7 +1873,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct case MODE_CLAUSE: who = 0; mstate = MODE_WHO; - fallthrough; + BFS_FALLTHROUGH; case MODE_WHO: switch (*i) { @@ -1900,7 +1900,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct case MODE_EQUALS: expr->file_mode &= ~who; expr->dir_mode &= ~who; - fallthrough; + BFS_FALLTHROUGH; case MODE_PLUS: expr->file_mode |= file_change; expr->dir_mode |= dir_change; @@ -1910,7 +1910,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct expr->dir_mode &= ~dir_change; break; } - fallthrough; + BFS_FALLTHROUGH; case MODE_ACTION: if (who == 0) { @@ -1992,7 +1992,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct break; case 'x': file_change |= who & 0111; - fallthrough; + BFS_FALLTHROUGH; case 'X': dir_change |= who & 0111; break; @@ -2055,7 +2055,7 @@ static struct expr *parse_perm(struct parser_state *state, int field, int arg2) ++mode; break; } - fallthrough; + BFS_FALLTHROUGH; default: expr->mode_cmp = MODE_EXACT; break; -- cgit v1.2.3