summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-28 03:54:36 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-28 03:54:36 +0000
commit6ce706e5225e92934d15ce9aa4a114512a5c76eb (patch)
tree468a3a5509292f1513a97214b625c159b8c2e053 /bin
parent9b6cf62b19b608664f5504e9a21bdff6a19ad8c8 (diff)
avoid symbol conflict (errno)
Diffstat (limited to 'bin')
-rw-r--r--bin/systrace/openbsd-syscalls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/systrace/openbsd-syscalls.c b/bin/systrace/openbsd-syscalls.c
index 24e223d08dc..35984efe19d 100644
--- a/bin/systrace/openbsd-syscalls.c
+++ b/bin/systrace/openbsd-syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openbsd-syscalls.c,v 1.12 2002/08/28 03:30:27 itojun Exp $ */
+/* $OpenBSD: openbsd-syscalls.c,v 1.13 2002/08/28 03:54:35 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -345,13 +345,13 @@ obsd_translate_flags(short flags)
}
static int
-obsd_translate_errno(int errno)
+obsd_translate_errno(int nerrno)
{
- return (errno);
+ return (nerrno);
}
static int
-obsd_answer(int fd, pid_t pid, u_int32_t seqnr, short policy, int errno,
+obsd_answer(int fd, pid_t pid, u_int32_t seqnr, short policy, int nerrno,
short flags)
{
struct systrace_answer ans;
@@ -360,7 +360,7 @@ obsd_answer(int fd, pid_t pid, u_int32_t seqnr, short policy, int errno,
ans.stra_seqnr = seqnr;
ans.stra_policy = obsd_translate_policy(policy);
ans.stra_flags = obsd_translate_flags(flags);
- ans.stra_error = obsd_translate_errno(errno);
+ ans.stra_error = obsd_translate_errno(nerrno);
if (ioctl(fd, STRIOCANSWER, &ans) == -1)
return (-1);