]> granicus.if.org Git - strace/commit
Simplify search in ioctl table
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 20 Mar 2012 09:57:41 +0000 (10:57 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 20 Mar 2012 09:57:41 +0000 (10:57 +0100)
commit1c2e912cc3e1be4081334b9ce0114c10a72166c6
tree81737a579dd1385fdb24464935e605b50abd5e97
parent8cf2c261eada67a137c7d118edf305f010e469ff
Simplify search in ioctl table

   text    data     bss     dec     hex filename
 236973     704   18944  256621   3ea6d strace.before
 236929     704   18944  256577   3ea41 strace

* ioctl.c (compare): Simplify generation of compare result.
(ioctl_lookup): Pass key directly, not as part of dummy struct.
(ioctl_next_match): More readable code. No logic changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
ioctl.c