diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-26 18:22:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-26 18:22:51 +0000 |
commit | 19b7c45c5da55cf8afd4f6546c261a60bf1db390 (patch) | |
tree | 1a97bd5e152766f3dbb91b6ca102e3f1b3e21226 /preconv.c | |
parent | 606b536bdbc7cbdcf4669f5817af1c9ebb2cd63b (diff) | |
download | mandoc-19b7c45c5da55cf8afd4f6546c261a60bf1db390.tar.gz |
KNF: indentation and sort variables by size; no functional change
Diffstat (limited to 'preconv.c')
-rw-r--r-- | preconv.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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. */ |