mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user