summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2018-02-06 01:24:31 +0000
committertedu <tedu@openbsd.org>2018-02-06 01:24:31 +0000
commitd33a1539d2ed618337d2b5df629e328326d11ac8 (patch)
treeffb6a9f71ef8ec722d79d91345dda2b916a8f290
parentLoad the Intel microcode much earlier. So far we had loaded it after (diff)
downloadwireguard-openbsd-d33a1539d2ed618337d2b5df629e328326d11ac8.tar.xz
wireguard-openbsd-d33a1539d2ed618337d2b5df629e328326d11ac8.zip
reduce scope of variable a bit to avoid shadowing
-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 {