summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2018-02-06 01:24:32 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2018-02-06 01:24:32 +0000
commit6659da5fd9d155090127ba84d2725cc02b39d2e8 (patch)
tree8c9cc795d8038216d4e4727884a4bc5c863d31e0 /sys
parent01504acc852cf0146ef7e5a5a209ef9f349c6ae0 (diff)
reduce scope of variable a bit to avoid shadowing
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index a22f9d797f8..51eb2b3c71b 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.135 2017/12/30 23:08:29 guenther Exp $ */
+/* $OpenBSD: tty.c,v 1.136 2018/02/06 01:24:31 tedu Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -1703,7 +1703,7 @@ ttwrite(struct tty *tp, struct uio *uio, int flag)
int cc, ce, obufcc = 0;
struct proc *p;
struct process *pr;
- int i, hiwat, error, s;
+ int hiwat, error, s;
size_t cnt;
u_char obuf[OBUFSIZ];
@@ -1801,6 +1801,7 @@ loop:
* immediately.
*/
while (cc > 0) {
+ int i;
if (!ISSET(tp->t_oflag, OPOST))
ce = cc;
else {