about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-05-06 14:19:54 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:24:26 +0000
commit7ae55dc0aa37c1baec3b4fc71c0a001353ebe7dc (patch)
tree5190ff119f25e6d70945348fb119c2a36e3d073c
parentd4a845daaf05e22207243b69624def1ee59607ac (diff)
downloadglibc-7ae55dc0aa37c1baec3b4fc71c0a001353ebe7dc.tar.gz
glibc-7ae55dc0aa37c1baec3b4fc71c0a001353ebe7dc.tar.xz
glibc-7ae55dc0aa37c1baec3b4fc71c0a001353ebe7dc.zip
Fix resource/bug-ulimit1 test
ulimit is a variadic function and the second argument must have type
long (or unsigned long).
-rw-r--r--resource/bug-ulimit1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resource/bug-ulimit1.c b/resource/bug-ulimit1.c
index 334d7fff04..8dd3ddf493 100644
--- a/resource/bug-ulimit1.c
+++ b/resource/bug-ulimit1.c
@@ -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;