]> granicus.if.org Git - strace/commitdiff
Remove extern declaration at file scope
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 3 Jul 2010 19:40:09 +0000 (21:40 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 6 Jul 2010 17:40:25 +0000 (19:40 +0200)
* defs.h (force_result): Declare.
* process.c (internal_wait): Don't declare force_result.

defs.h
process.c

diff --git a/defs.h b/defs.h
index 62b371917b8061c359c10290bcee5650fce3408a..a7e8793319c8670383771237197a2a4f07e76372 100644 (file)
--- 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 *);
index c69e45e692926abcc95c7aa1003631cd4dfae9e0..dadf8306a709d50ea3350001aead8fae9be8b321 100644 (file)
--- 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);
                }
        }