Use uint8_t for qual_flags[] instead of ints.
Resulting bss reduction is ~6kbytes:
text data bss dec hex filename
245703 700 19072 265475 40d03 strace.t4/strace
245687 700 12928 259315 3f4f3 strace.t5/strace
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/defs.h b/defs.h
index 855a312..9b14a21 100644
--- a/defs.h
+++ b/defs.h
@@ -470,6 +470,7 @@
#define QUAL_READ 0x040 /* dump data read on this file descriptor */
#define QUAL_WRITE 0x080 /* dump data written to this file descriptor */
#define UNDEFINED_SCNO 0x100 /* Used only in tcp->qual_flg */
+typedef uint8_t qualbits_t;
#define DEFAULT_QUAL_FLAGS (QUAL_TRACE | QUAL_ABBREV | QUAL_VERBOSE)
@@ -524,7 +525,7 @@
CFLAG_BOTH
} cflag_t;
extern cflag_t cflag;
-extern int *qual_flags;
+extern qualbits_t *qual_flags;
extern bool debug_flag;
extern bool Tflag;
extern bool qflag;