Fix a couple of operator precedence bugs.
PR: 5450 Submitted by: Sakari Jalovaara <sja@tekla.fi>
This commit is contained in:
parent
d5d35e9764
commit
9fcdb68302
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tty_compat.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: tty_compat.c,v 1.24 1997/12/06 13:23:58 bde Exp $
|
||||
* $Id: tty_compat.c,v 1.25 1997/12/16 17:40:26 eivind Exp $
|
||||
*/
|
||||
|
||||
#include "opt_compat.h"
|
||||
@ -302,12 +302,12 @@ ttcompatgetflags(tp)
|
||||
if ((lflag&ICANON) == 0) {
|
||||
/* fudge */
|
||||
if (iflag&(INPCK|ISTRIP|IXON) || lflag&(IEXTEN|ISIG)
|
||||
|| cflag&(CSIZE|PARENB) != CS8)
|
||||
|| (cflag&(CSIZE|PARENB)) != CS8)
|
||||
flags |= CBREAK;
|
||||
else
|
||||
flags |= RAW;
|
||||
}
|
||||
if (!(flags&RAW) && !(oflag&OPOST) && cflag&(CSIZE|PARENB) == CS8)
|
||||
if (!(flags&RAW) && !(oflag&OPOST) && (cflag&(CSIZE|PARENB)) == CS8)
|
||||
flags |= LITOUT;
|
||||
if (cflag&MDMBUF)
|
||||
flags |= MDMBUF;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
|
||||
* $Id: udp_usrreq.c,v 1.41 1997/10/28 15:58:54 bde Exp $
|
||||
* $Id: udp_usrreq.c,v 1.42 1997/12/19 23:46:21 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -246,7 +246,7 @@ udp_input(m, iphlen)
|
||||
* port. It * assumes that an application will never
|
||||
* clear these options after setting them.
|
||||
*/
|
||||
if ((last->inp_socket->so_options&(SO_REUSEPORT|SO_REUSEADDR) == 0))
|
||||
if ((last->inp_socket->so_options&(SO_REUSEPORT|SO_REUSEADDR)) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user