Skip to contentSkip to conversation

slcanpty: code-style: add braces

PATCH New uescher 1 participant 1 message Feb 24, 2013 CAN network drivers

lore
Share & tools
lore

uescher

author
#0 lore raw

PATCH 2/2 slcanpty: code-style: add braces

slcanpty: code-style: add braces

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

---
 slcanpty.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
slcanpty.c +8 -6
index 037edf5..b176498 100644
@@ -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;
+			}
 		}
 	}
 
Signature · 1 line
1.7.9.5