Skip to contentSkip to conversation

fixed coding style issue

PATCH Applied Jeffrin Jose 2 participants 2 messages Apr 8, 2012 – Apr 12, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixed coding style issue

hello all,

i have worked on some coding style issues on net/core/utils.c

please see attachment.

Thanks

/Jeffrin.

Signature · 4 lines
software engineer
Bohr Lab
department of computer science
Rajagiri school of engineering and technology.
Quoted 1 line

From fa37bfd6c2ef8ff81b38ad9dd4467a727d6def81 Mon Sep 17 00:00:00 2001

From: Jeffrin Jose <[email protected]>
Date: Sun, 8 Apr 2012 00:09:11 +0530
Subject: [PATCH 6/6] net: Fixed coding style issues relating to braces.

Fixed coding style issues in net/core/utils.c in relation with braces placement.

---
 net/core/utils.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
net/core/utils.c +3 -6
index 386e263f..c2e8b41 100644
@@ -59,14 +59,11 @@ __be32 in_aton(const char *str)
 	int i;
 
 	l = 0;
-	for (i = 0; i < 4; i++)
-	{
+	for (i = 0; i < 4; i++)	{
 		l <<= 8;
-		if (*str != '\0')
-		{
+		if (*str != '\0') {
 			val = 0;
-			while (*str != '\0' && *str != '.' && *str != '\n')
-			{
+			while (*str != '\0' && *str != '.' && *str != '\n') {
 				val *= 10;
 				val += *str - '0';
 				str++;
Signature · 1 line
1.7.9
maintainer Applied
#1 lore raw

From: Jeffrin Jose <[email protected]>
Date: Sun, 8 Apr 2012 21:37:42 +0530

Quoted 4 lines

i have worked on some coding style issues
on net/core/utils.c

please see attachment.

Applied, thanks.