Skip to content

Commit 901f2f6

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b549502 commit 901f2f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fsck.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
static struct oidset gitmodules_found = OIDSET_INIT;
2323
static struct oidset gitmodules_done = OIDSET_INIT;
2424

25-
#define FOREACH_MSG_ID(FUNC) \
25+
#define FOREACH_FSCK_MSG_ID(FUNC) \
2626
/* fatal errors */ \
2727
FUNC(NUL_IN_HEADER, FATAL) \
2828
FUNC(UNTERMINATED_HEADER, FATAL) \
@@ -83,7 +83,7 @@ static struct oidset gitmodules_done = OIDSET_INIT;
8383

8484
#define MSG_ID(id, msg_type) FSCK_MSG_##id,
8585
enum fsck_msg_id {
86-
FOREACH_MSG_ID(MSG_ID)
86+
FOREACH_FSCK_MSG_ID(MSG_ID)
8787
FSCK_MSG_MAX
8888
};
8989
#undef MSG_ID
@@ -96,7 +96,7 @@ static struct {
9696
const char *camelcased;
9797
enum fsck_msg_type msg_type;
9898
} msg_id_info[FSCK_MSG_MAX + 1] = {
99-
FOREACH_MSG_ID(MSG_ID)
99+
FOREACH_FSCK_MSG_ID(MSG_ID)
100100
{ NULL, NULL, NULL, -1 }
101101
};
102102
#undef MSG_ID

0 commit comments

Comments
 (0)