Hello,

Guillem Jover, le lun. 26 oct. 2026 13:46:15 +0100, a ecrit:
> On Mon, 2026-10-26 at 11:39:56 +0100, Samuel Thibault wrote:
> > But I don't think we need MAX_DISK_DEV at all: you can just drop the
> > size from the allowed_devs array so it's automatically computed, and
> > make the for loop use sizeof(allowed_devs)/sizeof(allowed_devs[0]) to
> > know how many elements there are in the array. That can be a preparatory
> > patch that we can commit already.
> 
> It seems gnumach already has an ARRAY_SIZE macro, so I'd use that.
> 
> Although I think ideally the code base could be switched to use
> countof() (from the upcoming C2y standard) found in <stdcountof.h>.

Yes, better use a standard macro than using mach-provided macros.
Gianluca, could you change block-rump.c to use that?

Thanks,
Samuel

Reply via email to