public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Fix resource/bug-ulimit1 test
@ 2022-10-28 10:18 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2022-10-28 10:18 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b4174c28d21e1672ef3cc15a058558e97b8471c6

commit b4174c28d21e1672ef3cc15a058558e97b8471c6
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
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  <adhemerval.zanella@linaro.org>

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-28 10:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 10:18 [glibc] Fix resource/bug-ulimit1 test Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).