]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/tty_tty.c
xnu-1504.15.3.tar.gz
[apple/xnu.git] / bsd / kern / tty_tty.c
index 1c9882d96b18d42bf9990b104ccaa7be52097d3d..29868fadc1a4f1ac9261a32afcb312c4c393e151 100644 (file)
@@ -158,7 +158,7 @@ cttyioctl(__unused dev_t dev, u_long cmd, caddr_t addr, int flag, proc_t p)
        if (cmd == TIOCNOTTY) {
                sessp = proc_session(p);
                if (!SESS_LEADER(p, sessp)) {
-                       OSBitAndAtomic(~((uint32_t)P_CONTROLT), (UInt32 *)&p->p_flag);
+                       OSBitAndAtomic(~((uint32_t)P_CONTROLT), &p->p_flag);
                        if (sessp != SESSION_NULL)
                                session_rele(sessp);
                        error = 0;