From 21aa5442f454173b03848737965c2d955e9008c6 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 27 Jun 2017 15:02:18 +0000 Subject: [PATCH] Tweak previous: align declarations and rename local variable. --- bin/csh/file.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/csh/file.c b/bin/csh/file.c index 7462fc7b70e..60b84675b20 100644 --- a/bin/csh/file.c +++ b/bin/csh/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.28 2017/06/27 14:37:08 deraadt Exp $ */ +/* $OpenBSD: file.c,v 1.29 2017/06/27 15:02:18 anton Exp $ */ /* $NetBSD: file.c,v 1.11 1996/11/08 19:34:37 christos Exp $ */ /*- @@ -159,8 +159,8 @@ cl_flush(struct cmdline *cl) static int cl_getc(struct cmdline *cl) { - ssize_t n; - unsigned char c; + ssize_t n; + unsigned char c; for (;;) { n = read(cl->fdin, &c, 1); @@ -198,11 +198,11 @@ cl_lastw(struct cmdline *cl) } static void -cl_putc(struct cmdline *cl, int ci) +cl_putc(struct cmdline *cl, int c) { - unsigned char c = ci; + unsigned char cc = c; - write(cl->fdout, &c, 1); + write(cl->fdout, &cc, 1); } static void -- 2.20.1