From de820504b8b3b8322b6405a0bb993c26c85d8d6a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Nov 2015 00:26:04 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/slibc-human/machinemode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slibc-human/machinemode.c b/src/slibc-human/machinemode.c index dce7630..06029d3 100644 --- a/src/slibc-human/machinemode.c +++ b/src/slibc-human/machinemode.c @@ -48,7 +48,7 @@ int machinemode(mode_t* restrict mode, mode_t* restrict mask, const char* restri #define TEST(S, T) (TEST_(S"+", T, 1) || TEST_(S"-", T, 2) || TEST_(S"=", T, 3)) #define TESTV(T) (TEST(#T, T) ? (T = v) : 0) -#define BITS_(V, T, S) if (V & bits[i][T]) goto invalid; else var |= bits[i][S] +#define BITS_(V, T, S) if (V & bits[i][T]) goto invalid; else V |= bits[i][S] #define BITS(V) \ if (*str == 'r') { BITS_(V, 0, 0); } \ else if (*str == 'w') { BITS_(V, 1, 1); } \ -- cgit v1.2.3-70-g09d2