All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] coding style
@ 2004-04-22 10:37 Ozgur AKAN
  0 siblings, 0 replies; only message in thread
From: Ozgur AKAN @ 2004-04-22 10:37 UTC (permalink / raw)
  To: netfilter-devel@lists.netfilter.org

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

A minor patch for better code style in iptables-save.c. 

-- 
Ozgur Akan


[-- Attachment #2: print_ip_code_style.PATCH --]
[-- Type: text/plain, Size: 445 bytes --]

--- iptables/iptables-save.c	2004-04-22 11:53:14.436259656 +0300
+++ iptables_dev/iptables-save.c	2004-04-22 11:54:14.218171424 +0300
@@ -150,9 +150,9 @@ static void print_ip(char *prefix, u_int
 		IP_PARTS(ip));
 
 	if (mask != 0xffffffff) 
-		printf("/%u.%u.%u.%u ", IP_PARTS(mask));
-	else
-		printf(" ");
+		printf("/%u.%u.%u.%u", IP_PARTS(mask));
+	
+	printf(" ");
 }
 
 /* We want this to be readable, so only print out neccessary fields.

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

only message in thread, other threads:[~2004-04-22 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 10:37 [PATCH] coding style Ozgur AKAN

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.