source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: KNF: indentation and sort variables by size; no functional
Date: Sun, 26 Oct 2014 14:22:51 -0400 (EDT)	[thread overview]
Message-ID: <201410261822.s9QIMpvm008602@krisdoz.my.domain> (raw)

Log Message:
-----------
KNF: indentation and sort variables by size; no functional change

Modified Files:
--------------
    mdocml:
        preconv.c

Revision Data
-------------
Index: preconv.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/preconv.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lpreconv.c -Lpreconv.c -u -p -r1.9 -r1.10
--- preconv.c
+++ 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. */
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2014-10-26 18:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201410261822.s9QIMpvm008602@krisdoz.my.domain \
    --to=schwarze@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).