[PATCH v4 05/29] trailer: use bool for had_trailer_before
- From
Li Chen <me@linux.beauty>
- Date
- Oct 14, 2025, 12:24 UTC
- Message-ID
- <20251014122452.1851103-6-me@linux.beauty>
- In-Reply-To
- <20251014122452.1851103-1-me@linux.beauty>
From: Li Chen <chenl311@chinatelecom.cn>
Switch had_trailer_before from int to bool to match its logical use. No functional change.
Signed-off-by: Li Chen <chenl311@chinatelecom.cn> --- trailer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trailer.c b/trailer.c index 3169e315c0..ac756020a3 100644 --- a/trailer.c +++ b/trailer.c @@ -1266,7 +1266,7 @@ int trailer_process(const struct process_trailer_options *opts, struct trailer_block *blk; LIST_HEAD(orig_head); struct strbuf trailers_sb = STRBUF_INIT; - int had_trailer_before; + bool had_trailer_before; blk = parse_trailers(opts, msg, &orig_head); had_trailer_before = !list_empty(&orig_head);
-- 2.51.0