diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-05-06 14:19:54 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-28 11:17:18 +0100 |
commit | b4174c28d21e1672ef3cc15a058558e97b8471c6 (patch) | |
tree | fad154525bc173635332b46377295fc6c73d1195 /resource/bug-ulimit1.c | |
parent | b866018f54ad0670ee9b930a14ae6e8960b9f4bf (diff) | |
download | glibc-b4174c28d21e1672ef3cc15a058558e97b8471c6.tar glibc-b4174c28d21e1672ef3cc15a058558e97b8471c6.tar.gz glibc-b4174c28d21e1672ef3cc15a058558e97b8471c6.tar.bz2 glibc-b4174c28d21e1672ef3cc15a058558e97b8471c6.zip |
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>
Diffstat (limited to 'resource/bug-ulimit1.c')
-rw-r--r-- | resource/bug-ulimit1.c | 2 |
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; |