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: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
Thomas Weißschuh 2023-08-03 09:28:48 +02:00 committed by Willy Tarreau
parent 809145f842
commit 04694658ad
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}