Fix a couple of operator precedence bugs.

PR:		5450
Submitted by:	Sakari Jalovaara <sja@tekla.fi>
This commit is contained in:
Steve Price 1998-01-25 17:25:41 +00:00
parent 31e6b13443
commit 694ad0a9b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32773
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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;
}