diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-27 15:24:48 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-27 15:24:48 +0100 |
commit | eebb04d4ae8bf4b08a041f5ea442ca24c90692c2 (patch) | |
tree | 624b6abafe5fe64fd39770f5ff0f2dc9e1e81316 | |
parent | cfad543087d98c5313fd7f006c0de69a1d87dc8e (diff) | |
download | strace-eebb04d4ae8bf4b08a041f5ea442ca24c90692c2.tar.gz |
Make pid2tcb static
* defs.h: Remove pid2tcb declaration.
* strace.c (pid2tcb): Make this function static.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | defs.h | 1 | ||||
-rw-r--r-- | strace.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -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) @@ -1607,7 +1607,7 @@ proc_open(struct tcb *tcp, int attaching) #endif /* USE_PROCFS */ -struct tcb * +static struct tcb * pid2tcb(int pid) { int i; |