aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit0816fa828919460b77df2858465b6e1d25cce74d (patch)
tree964a7567c061d70316e1c25c7e9f1f0b499dde6c /preconv.c
parent74e1cee1cb95d5146a7969bfe65ac193c45a00e3 (diff)
downloadmandoc-0816fa828919460b77df2858465b6e1d25cce74d.tar.gz
mandoc-0816fa828919460b77df2858465b6e1d25cce74d.tar.zst
mandoc-0816fa828919460b77df2858465b6e1d25cce74d.zip
KNF: indentation and sort variables by size; no functional change
Diffstat (limited to 'preconv.c')
-rw-r--r--preconv.c9
1 files changed, 4 insertions, 5 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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. */