From b4174c28d21e1672ef3cc15a058558e97b8471c6 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 6 May 2022 14:19:54 +0100 Subject: 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 --- resource/bug-ulimit1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resource') 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; -- cgit 1.4.1