Correct parentheses and brackets clang warnings

This commit is contained in:
Ben RUBSON 2017-10-29 22:58:51 +01:00 committed by GitHub
parent 8b46390028
commit e2ea0e4d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@
#include <openssl/buffer.h>
#define BLOCKDATA(BLOCK) (unsigned char *)BLOCK->data->data
#define BLOCKDATA(BLOCK) (unsigned char *)(BLOCK)->data->data
namespace encfs {

View File

@ -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 {