fsck.c: rename remaining fsck_msg_id "id" to "msg_id"

Rename the remaining variables of type fsck_msg_id from "id" to "msg_id". This change is relatively small, and is worth the churn for a later change where we have different id's in the "report" function. 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 35af754b0694eb26a253edf551efe400f30b3864
1 file changed +3 -3
fsck.c
+3 -3
@@ -273,11 +273,11 @@ static int object_on_skiplist(struct fsck_options *opts,
273 __attribute__((format (printf, 5, 6)))
274 static int report(struct fsck_options *options,
275 const struct object_id *oid, enum object_type object_type,
276 - enum fsck_msg_id id, const char *fmt, ...)
276 + enum fsck_msg_id msg_id, const char *fmt, ...)
277 {
278 va_list ap;
279 struct strbuf sb = STRBUF_INIT;
280 - int msg_type = fsck_msg_type(id, options), result;
280 + int msg_type = fsck_msg_type(msg_id, options), result;
281
282 if (msg_type == FSCK_IGNORE)
283 return 0;
@@ -291,7 +291,7 @@ static int report(struct fsck_options *options,
291 msg_type = FSCK_WARN;
292
293 prepare_msg_ids();
294 - strbuf_addf(&sb, "%s: ", msg_id_info[id].camelcased);
294 + strbuf_addf(&sb, "%s: ", msg_id_info[msg_id].camelcased);
295
296 va_start(ap, fmt);
297 strbuf_vaddf(&sb, fmt, ap);