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=d8ecbea3fcdef89fd80d8061f009cb33d40a83f9;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;