From: Jeff King Date: Thu, 05 Dec 2024 19:14:01 GMT Subject: Re: [PATCH 09/10] daemon: fix loops that have mismatching integer types Message-ID: <20241205191401.GB2629822@coredump.intra.peff.net> In-Reply-To: On Mon, Dec 02, 2024 at 08:54:03AM +0100, Patrick Steinhardt wrote: > > > @@ -503,8 +503,7 @@ static struct daemon_service daemon_service[] = { > > > > > > static void enable_service(const char *name, int ena) > > > { > > > - int i; > > > - for (i = 0; i < ARRAY_SIZE(daemon_service); i++) { > > > + for (size_t i = 0; i < ARRAY_SIZE(daemon_service); i++) { > > > if (!strcmp(daemon_service[i].name, name)) { > > > daemon_service[i].enabled = ena; > > > return; > > > > look exactly the same as the ones fixed in the previous patch. Is there > > a reason I'm missing that these are split out? > > Yeah, they do. I decided to not touch places in the trivial conversion > where we couldn't also remove the macro in the same step due to warnings > that require a bit more though to fix. Ah, that makes complete sense. -Peff