summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-03-05 15:46:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-03-05 15:46:34 +0100
commit7239dbcf2dff792f408c60fe3e278f707fdf497b (patch)
treee1ca9125af94f8b1ca5c708f1fc0bf42b471de3e /defs.h
parentf877982aa2daa571b0e9bc67a3b582c45259d2cd (diff)
downloadstrace-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/defs.h b/defs.h
index 6bfa916..1d607c7 100644
--- a/defs.h
+++ b/defs.h
@@ -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);