From 102e69a3ea49c2833e2c95bf1babcaa0761d0ed7 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 3 Jul 2010 21:40:09 +0200 Subject: [PATCH] Remove extern declaration at file scope * defs.h (force_result): Declare. * process.c (internal_wait): Don't declare force_result. --- defs.h | 1 + process.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/defs.h b/defs.h index 62b37191..a7e87933 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 c69e45e6..dadf8306 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); } } -- 2.50.1