From: Szabolcs Nagy Date: Fri, 6 May 2022 13:19:54 +0000 (+0100) Subject: Fix resource/bug-ulimit1 test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41359701cd9a557f0afc270c4b35c7a96b90a7d0;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). --- 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;