summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-30 06:07:07 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-30 06:07:07 +0000
commit653f8f659f3f1a4e8f144159c85d8965a0a8f1fa (patch)
tree5e8c3b5d79c8e704ff3d8ca69ed49ba86feeb2e1 /bin
parent410d0fd62d65e08af3bdbaf9fb528a3ecbff4eef (diff)
avoid using same variable name for global and auto variable.
Diffstat (limited to 'bin')
-rw-r--r--bin/systrace/register.c4
-rw-r--r--bin/systrace/systrace-translate.c4
-rw-r--r--bin/systrace/systrace.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/systrace/register.c b/bin/systrace/register.c
index 3c9cd4d114e..e570e0e1d94 100644
--- a/bin/systrace/register.c
+++ b/bin/systrace/register.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: register.c,v 1.7 2002/07/19 14:38:58 itojun Exp $ */
+/* $OpenBSD: register.c,v 1.8 2002/07/30 06:07:06 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -69,7 +69,7 @@ systrace_initcb(void)
&ic_translate_connect);
X(intercept_register_sccb("native", "execve", trans_cb, NULL));
intercept_register_transfn("native", "execve", 0);
- intercept_register_translation("native", "execve", 1, &argv);
+ intercept_register_translation("native", "execve", 1, &trargv);
X(intercept_register_sccb("native", "stat", trans_cb, NULL));
tl = intercept_register_transfn("native", "stat", 0);
alias = systrace_new_alias("native", "stat", "native", "fsread");
diff --git a/bin/systrace/systrace-translate.c b/bin/systrace/systrace-translate.c
index d93ffd4380c..cd55acd8c3e 100644
--- a/bin/systrace/systrace-translate.c
+++ b/bin/systrace/systrace-translate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace-translate.c,v 1.8 2002/07/20 04:19:53 provos Exp $ */
+/* $OpenBSD: systrace-translate.c,v 1.9 2002/07/30 06:07:06 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -231,7 +231,7 @@ print_argv(char *buf, size_t buflen, struct intercept_translate *tl)
return (0);
}
-struct intercept_translate argv = {
+struct intercept_translate trargv = {
"argv",
get_argv, print_argv,
};
diff --git a/bin/systrace/systrace.h b/bin/systrace/systrace.h
index 7bdf38d0e02..e3bc74d16c1 100644
--- a/bin/systrace/systrace.h
+++ b/bin/systrace/systrace.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.h,v 1.11 2002/07/19 14:38:58 itojun Exp $ */
+/* $OpenBSD: systrace.h,v 1.12 2002/07/30 06:07:06 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -182,7 +182,7 @@ extern struct intercept_translate fdt;
extern struct intercept_translate uidt;
extern struct intercept_translate uname;
extern struct intercept_translate gidt;
-extern struct intercept_translate argv;
+extern struct intercept_translate trargv;
extern struct intercept_translate linux_oflags;