aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-27 22:02:22 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-27 22:02:22 +0100
commitc71fe45ef1585fe4c492893e171d5983abc5b07c (patch)
treef682dfbbefac751bffaf670da9aa4f19a58d7277 /src
parenttypo (diff)
downloadslibc-c71fe45ef1585fe4c492893e171d5983abc5b07c.tar.gz
slibc-c71fe45ef1585fe4c492893e171d5983abc5b07c.tar.bz2
slibc-c71fe45ef1585fe4c492893e171d5983abc5b07c.tar.xz
fix warning
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/slibc-human/machinemode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slibc-human/machinemode.c b/src/slibc-human/machinemode.c
index ec03fc5..0dceddf 100644
--- a/src/slibc-human/machinemode.c
+++ b/src/slibc-human/machinemode.c
@@ -92,7 +92,7 @@ static mode_t bits[][] = {
*/
static inline int partial_symbolic(mode_t* restrict mode, mode_t* restrict mask, const char* restrict str)
{
-#define TEST_(S, T, V) (strstarts(str, S) && !(T & (symbols = V)))
+#define TEST_(S, T, V) (strstarts(str, S) && !((T) & (symbols = (V))))
#define TEST(S, T) (TEST_(S"+", T, 1) || TEST_(S"-", T, 2) || TEST_(S"=", T, 3))
#define TESTV(T) (TEST(#T, T) ? (T |= symbols) : 0)