From 2d6d2f2cf838dc459bc1ef27476a26af5d82a53f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 10 May 2023 15:43:57 -0400 Subject: config: s/BFS_UNINIT/uninit/ --- src/config.h | 4 ++-- src/parse.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config.h b/src/config.h index aa54491..b9f2638 100644 --- a/src/config.h +++ b/src/config.h @@ -162,9 +162,9 @@ * Initialize a variable, unless sanitizers would detect uninitialized uses. */ #if __has_feature(memory_sanitizer) -# define BFS_UNINIT(var, value) var +# define uninit(var, value) var #else -# define BFS_UNINIT(var, value) value +# define uninit(var, value) value #endif // Wrappers for attributes diff --git a/src/parse.c b/src/parse.c index 9540e83..7dd851a 100644 --- a/src/parse.c +++ b/src/parse.c @@ -1962,11 +1962,11 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct MODE_PLUS, MODE_MINUS, MODE_EQUALS, - } op = BFS_UNINIT(op, MODE_EQUALS); + } op = uninit(op, MODE_EQUALS); - mode_t who = BFS_UNINIT(who, 0); - mode_t file_change = BFS_UNINIT(file_change, 0); - mode_t dir_change = BFS_UNINIT(dir_change, 0); + mode_t who = uninit(who, 0); + mode_t file_change = uninit(file_change, 0); + mode_t dir_change = uninit(dir_change, 0); const char *i = mode; while (true) { -- cgit v1.2.3