diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-21 16:15:43 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-21 16:15:43 +0100 |
commit | a585c9d6416d5ca7e3af3ffd4887205f06f8286d (patch) | |
tree | ec231db726e5b4b988ee0d69e54606de231ce326 /syscall.c | |
parent | 74ec14f968a418691b851cbbfeb0269174c64b08 (diff) | |
download | strace-a585c9d6416d5ca7e3af3ffd4887205f06f8286d.tar.gz strace-a585c9d6416d5ca7e3af3ffd4887205f06f8286d.tar.bz2 strace-a585c9d6416d5ca7e3af3ffd4887205f06f8286d.tar.xz |
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>
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -166,7 +166,7 @@ enum { nsyscalls0 = ARRAY_SIZE(sysent0) }; enum { nerrnos0 = ARRAY_SIZE(errnoent0) }; enum { nsignals0 = ARRAY_SIZE(signalent0) }; enum { nioctlents0 = ARRAY_SIZE(ioctlent0) }; -int qual_flags0[MAX_QUALS]; +qualbits_t qual_flags0[MAX_QUALS]; #if SUPPORTED_PERSONALITIES >= 2 static const char *const errnoent1[] = { @@ -182,7 +182,7 @@ enum { nsyscalls1 = ARRAY_SIZE(sysent1) }; enum { nerrnos1 = ARRAY_SIZE(errnoent1) }; enum { nsignals1 = ARRAY_SIZE(signalent1) }; enum { nioctlents1 = ARRAY_SIZE(ioctlent1) }; -int qual_flags1[MAX_QUALS]; +qualbits_t qual_flags1[MAX_QUALS]; #endif #if SUPPORTED_PERSONALITIES >= 3 @@ -199,7 +199,7 @@ enum { nsyscalls2 = ARRAY_SIZE(sysent2) }; enum { nerrnos2 = ARRAY_SIZE(errnoent2) }; enum { nsignals2 = ARRAY_SIZE(signalent2) }; enum { nioctlents2 = ARRAY_SIZE(ioctlent2) }; -int qual_flags2[MAX_QUALS]; +qualbits_t qual_flags2[MAX_QUALS]; #endif const struct sysent *sysent = sysent0; @@ -210,7 +210,7 @@ unsigned nsyscalls = nsyscalls0; unsigned nerrnos = nerrnos0; unsigned nsignals = nsignals0; unsigned nioctlents = nioctlents0; -int *qual_flags = qual_flags0; +qualbits_t *qual_flags = qual_flags0; #if SUPPORTED_PERSONALITIES > 1 unsigned current_personality; |