From e2ea0e4d2fed15c12c52e4ba4b88e657cd3375ad Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Sun, 29 Oct 2017 22:58:51 +0100 Subject: [PATCH] Correct parentheses and brackets clang warnings --- encfs/MemoryPool.cpp | 2 +- encfs/readpassphrase.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/encfs/MemoryPool.cpp b/encfs/MemoryPool.cpp index ff28056..29a9daf 100644 --- a/encfs/MemoryPool.cpp +++ b/encfs/MemoryPool.cpp @@ -33,7 +33,7 @@ #include -#define BLOCKDATA(BLOCK) (unsigned char *)BLOCK->data->data +#define BLOCKDATA(BLOCK) (unsigned char *)(BLOCK)->data->data namespace encfs { diff --git a/encfs/readpassphrase.cpp b/encfs/readpassphrase.cpp index 2e5913c..d9d9319 100644 --- a/encfs/readpassphrase.cpp +++ b/encfs/readpassphrase.cpp @@ -116,8 +116,9 @@ restart: term.c_lflag &= ~(ECHO | ECHONL); } #ifdef VSTATUS - if (term.c_cc[VSTATUS] != _POSIX_VDISABLE) + if (term.c_cc[VSTATUS] != _POSIX_VDISABLE) { term.c_cc[VSTATUS] = _POSIX_VDISABLE; + } #endif (void)tcsetattr(input, _T_FLUSH, &term); } else {