From: Szabolcs Nagy Date: Fri, 6 May 2022 13:19:54 +0000 (+0100) Subject: Fix resource/bug-ulimit1 test X-Git-Tag: glibc-2.37~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4174c28d21e1672ef3cc15a058558e97b8471c6;p=thirdparty%2Fglibc.git 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 --- diff --git a/resource/bug-ulimit1.c b/resource/bug-ulimit1.c index 334d7fff047..8dd3ddf493e 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;