summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-01-27 15:24:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-01-27 15:24:48 +0100
commiteebb04d4ae8bf4b08a041f5ea442ca24c90692c2 (patch)
tree624b6abafe5fe64fd39770f5ff0f2dc9e1e81316
parentcfad543087d98c5313fd7f006c0de69a1d87dc8e (diff)
downloadstrace-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.h1
-rw-r--r--strace.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/defs.h b/defs.h
index de5bd4b28..59a8a096a 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 20c02663f..782fe8fb0 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;