All of lore.kernel.org
 help / color / mirror / Atom feed
From: uescher <linux-can_ger.kernel.org@myvdr.de>
To: linux-can@vger.kernel.org
Subject: [PATCH 2/2] slcanpty: code-style: add braces
Date: Sun, 24 Feb 2013 16:31:56 +0100	[thread overview]
Message-ID: <512A326C.4030300@myvdr.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 79 bytes --]

slcanpty: code-style: add braces

Signed-off-by: Ulrich Escher <git@myvdr.de>


[-- Attachment #2: 0002-slcanpty-code-style-add-braces.patch --]
[-- Type: text/x-patch, Size: 866 bytes --]

From 0db3dba7450c5ec9f6fa31ff7686f7ed3536fe8d Mon Sep 17 00:00:00 2001
From: ulrich <git@myvdr.de>
Date: Sun, 24 Feb 2013 15:57:05 +0100
Subject: [PATCH 2/2] slcanpty: code-style: add braces

Signed-off-by: Ulrich Escher <git@myvdr.de>
---
 slcanpty.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/slcanpty.c b/slcanpty.c
index 037edf5..b176498 100644
--- a/slcanpty.c
+++ b/slcanpty.c
@@ -508,16 +508,18 @@ int main(int argc, char **argv)
 			continue;
 		}
 
-		if (FD_ISSET(p, &rdfs))
+		if (FD_ISSET(p, &rdfs)) {
 			if (pty2can(p, s, &fi, &is_open, &tstamp)) {
-			running = 0;
-			continue;
+				running = 0;
+				continue;
+			}
 		}
 
-		if (FD_ISSET(s, &rdfs))
+		if (FD_ISSET(s, &rdfs)) {
 			if (can2pty(p, s, &tstamp)) {
-			running = 0;
-			continue;
+				running = 0;
+				continue;
+			}
 		}
 	}
 
-- 
1.7.9.5


                 reply	other threads:[~2013-02-24 15:39 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=512A326C.4030300@myvdr.de \
    --to=linux-can_ger.kernel.org@myvdr.de \
    --cc=linux-can@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.