fsck.c: give "FOREACH_MSG_ID" a more specific name
Rename the FOREACH_MSG_ID macro to FOREACH_FSCK_MSG_ID in preparation for moving it over to fsck.h. It's good convention to name macros in *.h files in such a way as to clearly not clash with any other names in other files. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Mar 28, 2021 at 15:15 UTC
901f2f6742d55b2b73186a05261885dc824ed5cf
1 file changed
+3
-3
fsck.c
+3
-3
@@ -22,7 +22,7 @@
22
static struct oidset gitmodules_found = OIDSET_INIT;
23
static struct oidset gitmodules_done = OIDSET_INIT;
24
25
-#define FOREACH_MSG_ID(FUNC) \
25
+#define FOREACH_FSCK_MSG_ID(FUNC) \
26
/* fatal errors */ \
27
FUNC(NUL_IN_HEADER, FATAL) \
28
FUNC(UNTERMINATED_HEADER, FATAL) \
@@ -83,7 +83,7 @@ static struct oidset gitmodules_done = OIDSET_INIT;
83
84
#define MSG_ID(id, msg_type) FSCK_MSG_##id,
85
enum fsck_msg_id {
86
- FOREACH_MSG_ID(MSG_ID)
86
+ FOREACH_FSCK_MSG_ID(MSG_ID)
87
FSCK_MSG_MAX
88
};
89
#undef MSG_ID
@@ -96,7 +96,7 @@ static struct {
96
const char *camelcased;
97
enum fsck_msg_type msg_type;
98
} msg_id_info[FSCK_MSG_MAX + 1] = {
99
- FOREACH_MSG_ID(MSG_ID)
99
+ FOREACH_FSCK_MSG_ID(MSG_ID)
100
{ NULL, NULL, NULL, -1 }
101
};
102
#undef MSG_ID