diff options
author | Thomas Weißschuh | 2023-08-03 09:28:46 +0200 |
---|---|---|
committer | Willy Tarreau | 2023-08-23 05:17:07 +0200 |
commit | 640775022572380b6f78247f10c036e69d404947 (patch) | |
tree | c988bcf8ad26f873cd137aa6b8d03a4cad405e7d /tools/include | |
parent | f2f5eaefa17e4c432ffd22577682c21543ee39cf (diff) |
tools/nolibc: fix return type of getpagesize()
It's documented as returning int which is also implemented by glibc and
musl, so adopt that return type.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/nolibc/sys.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index e12dd962c578..c151533ba8e9 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -460,11 +460,11 @@ pid_t gettid(void) static unsigned long getauxval(unsigned long key); /* - * long getpagesize(void); + * int getpagesize(void); */ static __attribute__((unused)) -long getpagesize(void) +int getpagesize(void) { return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT); } |