Skip to contentSkip to conversation

Ulogd2: fix some indenting

PATCH Applied Eric Leblond 2 participants 2 messages Jan 11, 2008 – Jan 12, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

The following patch fixes some indenting and typo in various ulogd2 files.

BR,

Signature · 2 lines
Eric Leblond <[email protected]>
INL

From 26bafb4b06906df608249a9bcd462822f9e7c69b Mon Sep 17 00:00:00 2001
From: Eric Leblond <eric@ice-age.(none)>
Date: Thu, 10 Jan 2008 00:07:40 +0100
Subject: [PATCH] Indenting and typo fixes.

---
 input/flow/ulogd_inpflow_NFCT.c |   38 +++++++++++++++++++-------------------
 src/ulogd.c                     |    8 ++++----
 2 files changed, 23 insertions(+), 23 deletions(-)
input/flow/ulogd_inpflow_NFCT.c +19 -19
index 34b49be..d3cd20c 100644
@@ -190,24 +190,24 @@ static struct ulogd_key nfct_okeys[] = {
 			.field_id	= IPFIX_icmpTypeIPv4,
 		},
 	},
-        {
-                .type	= ULOGD_RET_UINT32,
-                .flags	= ULOGD_RETF_NONE,
-                .name	= "ct.mark",
-                .ipfix	= {
-                        .vendor		= IPFIX_VENDOR_NETFILTER,
-                        .field_id	= IPFIX_NF_mark,
-                },
-        },
-        {
-                .type	= ULOGD_RET_UINT32,
-                .flags	= ULOGD_RETF_NONE,
-                .name	= "ct.id",
-                .ipfix	= {
-                        .vendor		= IPFIX_VENDOR_NETFILTER,
-                        .field_id	= IPFIX_NF_conntrack_id,
-                },
-        },
+	{
+		.type	= ULOGD_RET_UINT32,
+		.flags	= ULOGD_RETF_NONE,
+		.name	= "ct.mark",
+		.ipfix	= {
+			.vendor		= IPFIX_VENDOR_NETFILTER,
+			.field_id	= IPFIX_NF_mark,
+		},
+	},
+	{
+		.type	= ULOGD_RET_UINT32,
+		.flags	= ULOGD_RETF_NONE,
+		.name	= "ct.id",
+		.ipfix	= {
+			.vendor		= IPFIX_VENDOR_NETFILTER,
+			.field_id	= IPFIX_NF_conntrack_id,
+		},
+	},
 	{
 		.type 	= ULOGD_RET_UINT32,
 		.flags 	= ULOGD_RETF_NONE,
@@ -268,7 +268,7 @@ static struct ct_htable *htable_alloc(int htable_size, int prealloc)
 	INIT_LLIST_HEAD(&htable->idle);
 
 	for (i = 0; i < htable->num_buckets; i++)
-                INIT_LLIST_HEAD(&htable->buckets[i]);
+		INIT_LLIST_HEAD(&htable->buckets[i]);
 	
 	if (!htable->prealloc)
 		return htable;
src/ulogd.c +4 -4
index 2f23d2a..a96bb3b 100644
@@ -422,8 +422,8 @@ pluginstance_alloc_init(struct ulogd_plugin *pl, char *pi_id,
 			ptr += pi->config_kset->num_ces 
 						* sizeof(struct config_entry);
 			memcpy(pi->config_kset->ces, pl->config_kset->ces, 
-			       pi->config_kset->num_ces 
-			       			*sizeof(struct config_entry));
+			       pi->config_kset->num_ces
+						* sizeof(struct config_entry));
 		}
 	} else
 		pi->config_kset = NULL;
@@ -653,7 +653,7 @@ static int create_stack(const char *option)
 		plname = equals+1;
 	
 		/* find matching plugin */
- 		pl = find_plugin(plname);
+		pl = find_plugin(plname);
 		if (!pl) {
 			ulogd_log(ULOGD_ERROR, "can't find requested plugin "
 				  "%s\n", plname);
@@ -943,7 +943,7 @@ int main(int argc, char* argv[])
 			warn_and_exit(daemonize);
 		}
 		if (setegid(gid)) {
-			ulogd_log(ULOGD_FATAL, "can't sett effective GID %u\n",
+			ulogd_log(ULOGD_FATAL, "can't set effective GID %u\n",
 				  gid);
 			warn_and_exit(daemonize);
 		}
Signature · 1 line
1.5.2.5
#1 lore raw
Quoted 2 lines · Eric Leblond

The following patch fixes some indenting and typo in various ulogd2 files.

Applied, thanks Eric.