about summary refs log tree commit diff
path: root/src/misc/getrlimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/getrlimit.c')
-rw-r--r--src/misc/getrlimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/getrlimit.c b/src/misc/getrlimit.c
index 84a659d4..13835257 100644
--- a/src/misc/getrlimit.c
+++ b/src/misc/getrlimit.c
@@ -5,7 +5,7 @@
 int getrlimit(int resource, struct rlimit *rlim)
 {
 	long k_rlim[2];
-	if (syscall2(__NR_getrlimit, resource, (long)k_rlim) < 0)
+	if (syscall(SYS_getrlimit, resource, k_rlim) < 0)
 		return -1;
 	rlim->rlim_cur = k_rlim[0] == -1 ? -1 : (unsigned long)k_rlim[0];
 	rlim->rlim_max = k_rlim[1] == -1 ? -1 : (unsigned long)k_rlim[1];