summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-17 23:04:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-17 23:04:07 +0000
commitc600976b301c1330eda372aab6c742d13704a4c9 (patch)
tree022d10801dc0f32f62b1c42c8d316776942d9c34 /sys/kern
parentab4077462c1dd93fa2c15140e77465d6c13ba0b6 (diff)
better wording in a comment
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_pledge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index c08bf63c276..203f901fee1 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.45 2015/10/17 23:01:37 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.46 2015/10/17 23:04:06 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1056,7 +1056,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
switch (com) {
case TIOCGETA:
case TIOCGPGRP:
- case TIOCGWINSZ: /* ENOTTY for return for non-tty */
+ case TIOCGWINSZ: /* ENOTTY return for non-tty */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
return (ENOTTY);
@@ -1111,7 +1111,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
/* FALLTHROUGH */
case TIOCGPGRP:
case TIOCGETA:
- case TIOCGWINSZ: /* ENOTTY for return for non-tty */
+ case TIOCGWINSZ: /* ENOTTY return for non-tty */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
return (ENOTTY);