diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-02-15 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-02-15 08:00:00 +0000 |
commit | 46a9270fd2cc8f6615133f142a618415c388d12b (patch) | |
tree | 90fe762d6c752fe86df1110c7925cea5c88598cb | |
parent | a871448489a7a228a89f108ec879fd447c513168 (diff) | |
download | strace-46a9270fd2cc8f6615133f142a618415c388d12b.tar.gz |
strace: declare nflag variable as static
Apparently, nflag is not used outside the compilation unit where it is
defined.
* src/strace.c (nflag): Add static qualifier.
Reported-by: Masatake YAMATO <yamato@redhat.com>
Fixes: v5.9~55 "strace: add an option for printing syscall numbers"
-rw-r--r-- | src/strace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strace.c b/src/strace.c index 4e710db80..0a792d539 100644 --- a/src/strace.c +++ b/src/strace.c @@ -83,8 +83,8 @@ bool Tflag; int Tflag_scale = 1000; int Tflag_width = 6; bool iflag; -bool nflag; bool count_wallclock; +static bool nflag; static int tflag_scale = 1000000000; static unsigned tflag_width = 0; static const char *tflag_format = NULL; |