summaryrefslogtreecommitdiffstats
path: root/preconv.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-26 18:22:51 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-26 18:22:51 +0000
commit19b7c45c5da55cf8afd4f6546c261a60bf1db390 (patch)
tree1a97bd5e152766f3dbb91b6ca102e3f1b3e21226 /preconv.c
parent606b536bdbc7cbdcf4669f5817af1c9ebb2cd63b (diff)
downloadmandoc-19b7c45c5da55cf8afd4f6546c261a60bf1db390.tar.gz
KNF: indentation and sort variables by size; no functional change
Diffstat (limited to 'preconv.c')
-rw-r--r--preconv.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/preconv.c b/preconv.c
index d427c3cd..44a127da 100644
--- a/preconv.c
+++ b/preconv.c
@@ -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. */