[PATCH] Remove extern declaration at file scope
Andreas Schwab
schwab at linux-m68k.org
Sat Jul 3 19:57:34 UTC 2010
* defs.h (force_result): Declare.
* process.c (internal_wait): Don't declare force_result.
---
defs.h | 1 +
process.c | 1 -
2 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/defs.h b/defs.h
index 62b3719..a7e8793 100644
--- a/defs.h
+++ b/defs.h
@@ -490,6 +490,7 @@ extern int get_scno(struct tcb *);
extern long known_scno(struct tcb *);
extern long do_ptrace(int request, struct tcb *tcp, void *addr, void *data);
extern int ptrace_restart(int request, struct tcb *tcp, int sig);
+extern int force_result(struct tcb *, int, long);
extern int trace_syscall(struct tcb *);
extern int count_syscall(struct tcb *, struct timeval *);
extern void printxval(const struct xlat *, int, const char *);
diff --git a/process.c b/process.c
index c69e45e..dadf830 100644
--- a/process.c
+++ b/process.c
@@ -1981,7 +1981,6 @@ int flagarg;
if (tcp->u_arg[flagarg] & WNOHANG) {
/* We must force a fake result of 0 instead of
the ECHILD error. */
- extern int force_result();
return force_result(tcp, 0, 0);
}
}
--
1.7.1.1
--
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Strace-devel
mailing list