Fix resource/bug-ulimit1 test
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 6 May 2022 13:19:54 +0000 (14:19 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Oct 2022 10:17:18 +0000 (11:17 +0100)
ulimit is a variadic function and the second argument must have type
long (or unsigned long).

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
resource/bug-ulimit1.c

index 334d7ff..8dd3ddf 100644 (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;