From: Denys Vlasenko Date: Fri, 27 Jan 2012 14:24:48 +0000 (+0100) Subject: Make pid2tcb static X-Git-Tag: v4.7~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eebb04d4ae8bf4b08a041f5ea442ca24c90692c2;p=strace Make pid2tcb static * defs.h: Remove pid2tcb declaration. * strace.c (pid2tcb): Make this function static. Signed-off-by: Denys Vlasenko --- diff --git a/defs.h b/defs.h index de5bd4b2..59a8a096 100644 --- a/defs.h +++ b/defs.h @@ -597,7 +597,6 @@ void die_out_of_memory(void) __attribute__ ((noreturn)); extern void set_personality(int personality); extern const char *xlookup(const struct xlat *, int); extern struct tcb *alloc_tcb(int, int); -extern struct tcb *pid2tcb(int); extern void droptcb(struct tcb *); #define alloctcb(pid) alloc_tcb((pid), 1) diff --git a/strace.c b/strace.c index 20c02663..782fe8fb 100644 --- a/strace.c +++ b/strace.c @@ -1607,7 +1607,7 @@ proc_open(struct tcb *tcp, int attaching) #endif /* USE_PROCFS */ -struct tcb * +static struct tcb * pid2tcb(int pid) { int i;