From: Tony Cook Date: Mon, 17 Oct 2011 05:30:07 +0000 (+1100) Subject: move a variable declaration to the top of a block for C89 compat X-Git-Tag: v0.85_02~6 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/39e938a4232626c3a88a522ec7c91a7a3d00e45f move a variable declaration to the top of a block for C89 compat --- diff --git a/iolayer.c b/iolayer.c index f26a4bce..478ef956 100644 --- a/iolayer.c +++ b/iolayer.c @@ -586,12 +586,12 @@ i_io_putc_imp(io_glue *ig, int c) { if (!ig->buffered) { char buf = c; ssize_t write_result; + int result = c; if (ig->error) return EOF; write_result = i_io_raw_write(ig, &buf, 1); - int result = c; if (write_result != 1) { ig->error = 1; result = EOF;