diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-03-05 15:46:34 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-03-05 15:46:34 +0100 |
commit | 7239dbcf2dff792f408c60fe3e278f707fdf497b (patch) | |
tree | e1ca9125af94f8b1ca5c708f1fc0bf42b471de3e /defs.h | |
parent | f877982aa2daa571b0e9bc67a3b582c45259d2cd (diff) | |
download | strace-7239dbcf2dff792f408c60fe3e278f707fdf497b.tar.gz strace-7239dbcf2dff792f408c60fe3e278f707fdf497b.tar.bz2 strace-7239dbcf2dff792f408c60fe3e278f707fdf497b.tar.xz |
Use dynamically-sized selected[] array for -P PATH
While at it, added a small optimization of not remembering
the path twice if it happens to be the same.
text data bss dec hex filename
245111 680 10860 256651 3ea8b strace_old
245075 680 9804 255559 3e647 strace
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -601,7 +601,7 @@ extern int clearbpt(struct tcb *); extern const char *signame(int); extern int is_restart_error(struct tcb *); -extern int pathtrace_select(const char *); +extern void pathtrace_select(const char *); extern int pathtrace_match(struct tcb *); extern const char *getfdpath(struct tcb *, int); |