about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/setrlimit.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-11 18:36:55 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-11 18:36:55 +0000
commite78c8e4c26d4dfa781c033ef1e069630a0678c6e (patch)
tree88c973aff22f949f03b04f66533fa26b8423e9a9 /sysdeps/unix/sysv/linux/setrlimit.c
parent7ad6d73d6fb83394f97f93ce9472303117bdf020 (diff)
downloadglibc-e78c8e4c26d4dfa781c033ef1e069630a0678c6e.tar.gz
glibc-e78c8e4c26d4dfa781c033ef1e069630a0678c6e.tar.xz
glibc-e78c8e4c26d4dfa781c033ef1e069630a0678c6e.zip
Update.
1999-11-11  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/setrlimit.c: COrrectly use rlimits.

1999-11-09  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/getlogin_r.c (getlogin_r): Sync with getlogin
	implementation for ttyname_r call; fix inverted condition; return
	ut_user.
        Closes PR libc/1438.
Diffstat (limited to 'sysdeps/unix/sysv/linux/setrlimit.c')
-rw-r--r--sysdeps/unix/sysv/linux/setrlimit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/setrlimit.c b/sysdeps/unix/sysv/linux/setrlimit.c
index 1316159353..50506c3ad0 100644
--- a/sysdeps/unix/sysv/linux/setrlimit.c
+++ b/sysdeps/unix/sysv/linux/setrlimit.c
@@ -60,10 +60,10 @@ __setrlimit (resource, rlimits)
 #ifndef __ASSUME_NEW_GETRLIMIT_SYSCALL
   /* We might have to correct the limits values.  Since the old values
      were signed the new values are too large.  */
-  rlimits.rlim_cur = MIN ((unsigned long int) rlimits.rlim_cur,
-			  RLIM_INFINITY >> 2);
-  rlimits.rlim_max = MIN ((unsigned long int) rlimits.rlim_max,
-			  RLIM_INFINITY >> 2);
+  rlimits->rlim_cur = MIN ((unsigned long int) rlimits->rlim_cur,
+			   RLIM_INFINITY >> 2);
+  rlimits->rlim_max = MIN ((unsigned long int) rlimits->rlim_max,
+			   RLIM_INFINITY >> 2);
 
   /* Fall back on the old system call.  */
   return INLINE_SYSCALL (setrlimit, 2, resource, rlimits);