Re: [PATCH v4 next 10/23] tools/nolibc: Rename the 'errnum' parameter to strerror()

From: Willy Tarreau

Date: Sat Mar 07 2026 - 05:20:23 EST


On Mon, Mar 02, 2026 at 10:18:02AM +0000, david.laight.linux@xxxxxxxxx wrote:
> From: David Laight <david.laight.linux@xxxxxxxxx>
>
> Change the parameter variable name from 'errno' to 'errnum'.
> Matches any documentation and avoids any issues that might happen
> if errno is actually a #define (which is not uncommon).

Good point! And more importantly, shadowing the real errno is super
risky in case we'd call a macro that accesses it from that function.
>
> Signed-off-by: David Laight <david.laight.linux@xxxxxxxxx>

Acked-by: Willy Tarreau <w@xxxxxx>

Willy