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

tools/nolibc: sys: avoid implicit sign cast

getauxval() returns an unsigned long but the overall type of the ternary
operator needs to be signed.
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 809145f8
......@@ -466,7 +466,7 @@ static unsigned long getauxval(unsigned long key);
static __attribute__((unused))
int getpagesize(void)
{
return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT);
return __sysret((int)getauxval(AT_PAGESZ) ?: -ENOENT);
}
......
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