Fix resource/bug-ulimit1 test

ulimit is a variadic function and the second argument must have type
long (or unsigned long).

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Szabolcs Nagy 2022-05-06 14:19:54 +01:00
parent b866018f54
commit b4174c28d2

View File

@ -7,7 +7,7 @@ main (void)
int retval = 0; int retval = 0;
long int res; long int res;
res = ulimit (UL_SETFSIZE, 10000); res = ulimit (UL_SETFSIZE, 10000L);
printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res); printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
if (res != 10000) if (res != 10000)
retval = 1; retval = 1;