From d33a1539d2ed618337d2b5df629e328326d11ac8 Mon Sep 17 00:00:00 2001 From: tedu Date: Tue, 6 Feb 2018 01:24:31 +0000 Subject: [PATCH] reduce scope of variable a bit to avoid shadowing --- sys/kern/tty.c | 5 +++-- 1 file 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 { -- 2.20.1