Commit 64077502 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Willy Tarreau

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: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent f2f5eaef
......@@ -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);
}
......
......@@ -636,7 +636,7 @@ int test_getdents64(const char *dir)
static int test_getpagesize(void)
{
long x = getpagesize();
int x = getpagesize();
int c;
if (x < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment