From 7ae55dc0aa37c1baec3b4fc71c0a001353ebe7dc Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 6 May 2022 14:19:54 +0100 Subject: [PATCH] Fix resource/bug-ulimit1 test ulimit is a variadic function and the second argument must have type long (or unsigned long). --- resource/bug-ulimit1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;