diff options
| author | Michael Forney <mforney@mforney.org> | 2019-07-05 20:54:10 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-07-07 22:48:33 -0700 |
| commit | 3a70a6da53015c52ae81e99d284409edd97a4117 (patch) | |
| tree | 217e63ea191512f87a8cbd2b1b945b3ac53024f3 /pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch | |
| parent | 87cf7a326fb2ab7cd780ebd9d14f21ab7fba7ff4 (diff) | |
strace: Fix a few portability issues
Diffstat (limited to 'pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch')
| -rw-r--r-- | pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch b/pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch new file mode 100644 index 00000000..49a4f18b --- /dev/null +++ b/pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch @@ -0,0 +1,36 @@ +From f19be9dcb5afff4fab29d629eb9e0bcc4d6975a7 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Fri, 5 Jul 2019 20:52:24 -0700 +Subject: [PATCH] Don't return expression in void function + +--- + defs.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/defs.h b/defs.h +index 512ad51f..2dd5d65b 100644 +--- a/defs.h ++++ b/defs.h +@@ -609,7 +609,7 @@ extern bool pathtrace_match_set(struct tcb *, struct path_set *); + static inline void + pathtrace_select(const char *path) + { +- return pathtrace_select_set(path, &global_path_set); ++ pathtrace_select_set(path, &global_path_set); + } + + static inline bool +@@ -754,8 +754,8 @@ static inline void + printxval_dispatch(const struct xlat *xlat, size_t xlat_size, uint64_t val, + const char *dflt, enum xlat_type xt) + { +- return printxval_dispatch_ex(xlat, xlat_size, val, dflt, xt, +- XLAT_STYLE_DEFAULT); ++ printxval_dispatch_ex(xlat, xlat_size, val, dflt, xt, ++ XLAT_STYLE_DEFAULT); + } + + enum xlat_style_private_flag_bits { +-- +2.22.0 + |
