linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] slcanpty: code-style: add braces
@ 2013-02-24 15:31 uescher
  0 siblings, 0 replies; only message in thread
From: uescher @ 2013-02-24 15:31 UTC (permalink / raw)
  To: linux-can

[-- 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-24 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24 15:31 [PATCH 2/2] slcanpty: code-style: add braces uescher

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).