Make a few variables static.

* defs.h: Remove tcbtab declaration.
* strace.c: Make run_uid, run_gid, outf, tcbtab, progname
  global variables static

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2011-06-24 22:49:58 +02:00
parent f95397afb8
commit ead73bd349
2 changed files with 5 additions and 6 deletions

1
defs.h
View File

@ -502,7 +502,6 @@ typedef enum {
CFLAG_BOTH
} cflag_t;
extern struct tcb **tcbtab;
extern int *qual_flags;
extern int debug, followfork;
extern unsigned int ptrace_setoptions;

View File

@ -118,17 +118,17 @@ static int strace_child = 0;
static int strace_tracer_pid = 0;
static char *username = NULL;
uid_t run_uid;
gid_t run_gid;
static uid_t run_uid;
static gid_t run_gid;
int acolumn = DEFAULT_ACOLUMN;
int max_strlen = DEFAULT_STRLEN;
static char *outfname = NULL;
FILE *outf;
static FILE *outf;
static int curcol;
struct tcb **tcbtab;
static struct tcb **tcbtab;
static unsigned int nprocs, tcbtabsize;
const char *progname;
static const char *progname;
static int detach(struct tcb *tcp, int sig);
static int trace(void);