From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 62BBE3857421; Fri, 28 Oct 2022 10:18:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62BBE3857421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666952338; bh=/MjSrf36PWJHG389tkl2bj6J1iP+x1kop6wpTpNNuig=; h=From:To:Subject:Date:From; b=BOgGTY0OqfGsw827LVawHX9ymnkokhvYruA384zkrz7cuLaj8GKgx7SwUXTAJtXwi OSD9E1v4GY7rl2we/j3YHDrIJyRXzaSp8zUDApRZS9r0m55y2TDKjvKkEqYjyHhEh8 /HKcrNRbbNWK75MPjI0KcF+AQHLuENYWl9fAFBT0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc] Fix resource/bug-ulimit1 test X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/master X-Git-Oldrev: b866018f54ad0670ee9b930a14ae6e8960b9f4bf X-Git-Newrev: b4174c28d21e1672ef3cc15a058558e97b8471c6 Message-Id: <20221028101858.62BBE3857421@sourceware.org> Date: Fri, 28 Oct 2022 10:18:58 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b4174c28d21e1672ef3cc15a058558e97b8471c6 commit b4174c28d21e1672ef3cc15a058558e97b8471c6 Author: Szabolcs Nagy Date: Fri May 6 14:19:54 2022 +0100 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: --- 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;