]> granicus.if.org Git - strace/commitdiff
Make pid2tcb static
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 27 Jan 2012 14:24:48 +0000 (15:24 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 27 Jan 2012 14:24:48 +0000 (15:24 +0100)
* defs.h: Remove pid2tcb declaration.
* strace.c (pid2tcb): Make this function static.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
defs.h
strace.c

diff --git a/defs.h b/defs.h
index de5bd4b28ce79411fd8fc4fa1e40fbd25f6d4afe..59a8a096a7033de18eb6ca8bf668cfc8d3f3b059 100644 (file)
--- 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)
index 20c02663f0ec8a8789bebdca6d4742cee38b64ee..782fe8fb0f291c1fc2a1449da0674152891c7dd9 100644 (file)
--- 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;