projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b866018
)
Fix resource/bug-ulimit1 test
author
Szabolcs Nagy
<szabolcs.nagy@arm.com>
Fri, 6 May 2022 13:19:54 +0000
(14:19 +0100)
committer
Szabolcs 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
patch
|
blob
|
history
diff --git
a/resource/bug-ulimit1.c
b/resource/bug-ulimit1.c
index
334d7ff
..
8dd3ddf
100644
(file)
--- 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, 10000
L
);
printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
if (res != 10000)
retval = 1;