summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-10-03 18:34:17 +0000
committerjhb <jhb@FreeBSD.org>2005-10-03 18:34:17 +0000
commit2cc06a19bc0bbe4a6b67dc95ad183b4dc492c56c (patch)
tree529a26c1e2fa5536c15dba67edbafe0e43a78a3c /sys
parent591862f3fe876109366d84bd2e54cad39589f6c3 (diff)
downloadFreeBSD-src-2cc06a19bc0bbe4a6b67dc95ad183b4dc492c56c.zip
FreeBSD-src-2cc06a19bc0bbe4a6b67dc95ad183b4dc492c56c.tar.gz
Use the constants for the syscall names from syscall.h rather than
hardcoding the numbers for the SYSVIPC syscalls.
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index b84e9dd..4d44b6b 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/stat.h>
+#include <sys/syscall.h>
#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/sysent.h>
@@ -927,7 +928,7 @@ freebsd32_semsys(struct thread *td, struct freebsd32_semsys_args *uap)
/*
* Vector through to semsys if it is loaded.
*/
- return sysent[169].sy_call(td, uap);
+ return sysent[SYS_semsys].sy_call(td, uap);
}
int
@@ -936,7 +937,7 @@ freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap)
/*
* Vector through to msgsys if it is loaded.
*/
- return sysent[170].sy_call(td, uap);
+ return sysent[SYS_msgsys].sy_call(td, uap);
}
int
@@ -945,7 +946,7 @@ freebsd32_shmsys(struct thread *td, struct freebsd32_shmsys_args *uap)
/*
* Vector through to shmsys if it is loaded.
*/
- return sysent[171].sy_call(td, uap);
+ return sysent[SYS_shmsys].sy_call(td, uap);
}
int
OpenPOWER on IntegriCloud