ttynvt: Add some parentheses for clarity
Not strictly required.
This commit is contained in:
+2
-2
@@ -688,10 +688,10 @@ static unsigned int _tio_parity(const struct termios2 *tio)
|
||||
{
|
||||
unsigned int par;
|
||||
|
||||
if (tio->c_cflag & PARENB && tio->c_iflag & IGNPAR)
|
||||
if ((tio->c_cflag & PARENB) && (tio->c_iflag & IGNPAR))
|
||||
par = 1;
|
||||
#ifdef CMSPAR
|
||||
else if (tio->c_cflag & PARENB && tio->c_iflag & CMSPAR)
|
||||
else if ((tio->c_cflag & PARENB) && (tio->c_iflag & CMSPAR))
|
||||
{
|
||||
if (tio->c_cflag & PARODD)
|
||||
par = 4;
|
||||
|
||||
Reference in New Issue
Block a user