summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-10 15:43:57 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-10 15:43:57 -0400
commit2d6d2f2cf838dc459bc1ef27476a26af5d82a53f (patch)
treecf5cee5288f85440e878fd643d1bfef0160d0beb /src
parent3929ddedca049ac6f9dcbe88f85233b6ec1a415a (diff)
downloadbfs-2d6d2f2cf838dc459bc1ef27476a26af5d82a53f.tar.xz
config: s/BFS_UNINIT/uninit/
Diffstat (limited to 'src')
-rw-r--r--src/config.h4
-rw-r--r--src/parse.c8
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) {