summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-28 17:32:05 +0000
committerdillon <dillon@FreeBSD.org>1999-01-28 17:32:05 +0000
commitca558df378372b5884ff8069ed7ca0828d9b8de1 (patch)
tree437f037c49b94ed358c6bed90d5be63adb743843 /sys/kern/tty.c
parent789691e908f6bc573894f86b17cf9616bce158c7 (diff)
downloadFreeBSD-src-ca558df378372b5884ff8069ed7ca0828d9b8de1.zip
FreeBSD-src-ca558df378372b5884ff8069ed7ca0828d9b8de1.tar.gz
Fix warnings related to -Wall -Wcast-qual
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 1adf784..faa675e 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.110 1998/12/08 10:22:07 bde Exp $
+ * $Id: tty.c,v 1.111 1999/01/08 17:31:12 eivind Exp $
*/
/*-
@@ -809,7 +809,7 @@ ttioctl(tp, cmd, data, flag)
ISSET(constty->t_state, TS_CONNECTED))
return (EBUSY);
#ifndef UCONSOLE
- if (error = suser(p->p_ucred, &p->p_acflag))
+ if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
return (error);
#endif
constty = tp;
OpenPOWER on IntegriCloud