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:
parent
f95397afb8
commit
ead73bd349
1
defs.h
1
defs.h
@ -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;
|
||||
|
10
strace.c
10
strace.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user