diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-03-08 14:37:29 +0300 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-03-20 19:46:08 +0300 |
| commit | c0a08eb87f60daec1c1549c067945abfee711f86 (patch) | |
| tree | 0086ed9031abeb43c6bf486d90ff3c0aea8bb45f /tools/include | |
| parent | 2177dd375d087012907e389f787b21ac38bb1785 (diff) | |
| download | linux-c0a08eb87f60daec1c1549c067945abfee711f86.tar.xz | |
tools/nolibc: Rename the 'errnum' parameter to strerror()
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).
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260308113742.12649-5-david.laight.linux@gmail.com
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/include')
| -rw-r--r-- | tools/include/nolibc/stdio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/stdio.h b/tools/include/nolibc/stdio.h index b324fc438ea0..985e7f0834bf 100644 --- a/tools/include/nolibc/stdio.h +++ b/tools/include/nolibc/stdio.h @@ -734,7 +734,7 @@ int strerror_r(int errnum, char *buf, size_t buflen) } static __attribute__((unused)) -const char *strerror(int errno) +const char *strerror(int errnum) { static char buf[18]; char *b = buf; @@ -743,7 +743,7 @@ const char *strerror(int errno) _NOLIBC_OPTIMIZER_HIDE_VAR(b); /* Use strerror_r() to avoid having the only .data in small programs. */ - strerror_r(errno, b, sizeof(buf)); + strerror_r(errnum, b, sizeof(buf)); return b; } |
