From 0816fa828919460b77df2858465b6e1d25cce74d Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 26 Oct 2014 18:22:51 +0000 Subject: KNF: indentation and sort variables by size; no functional change --- preconv.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'preconv.c') diff --git a/preconv.c b/preconv.c index ad2bf5e2..3213c8ad 100644 --- a/preconv.c +++ b/preconv.c @@ -1,4 +1,4 @@ -/* $Id: preconv.c,v 1.9 2014/10/25 01:03:52 schwarze Exp $ */ +/* $Id: preconv.c,v 1.10 2014/10/26 18:22:51 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -27,11 +27,11 @@ int preconv_encode(struct buf *ib, struct buf *ob, int *filenc) { + size_t i; + const long one = 1L; int state, be; unsigned int accum; - size_t i; unsigned char cu; - const long one = 1L; if ( ! (*filenc & MPARSE_UTF8)) goto latin; @@ -158,8 +158,7 @@ preconv_cue(const struct buf *b) /* Check if we have the correct header/trailer. */ if ((sz = (size_t)(eoln - ln)) < 10 || - memcmp(ln, ".\\\" -*-", 7) || - memcmp(eoln - 3, "-*-", 3)) + memcmp(ln, ".\\\" -*-", 7) || memcmp(eoln - 3, "-*-", 3)) return(MPARSE_UTF8 | MPARSE_LATIN1); /* Move after the header and adjust for the trailer. */ -- cgit v1.2.3-56-ge451