Fix resource/bug-ulimit1 test

ulimit is a variadic function and the second argument must have type
long (or unsigned long).
This commit is contained in:
Szabolcs Nagy 2022-05-06 14:19:54 +01:00
parent d4a845daaf
commit 7ae55dc0aa

View File

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