ipset (6.12.1-1) 90-fix-typo.patch

Summary

 lib/data.c  |    2 +-
 lib/parse.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

Description: Fix typo in lib
Author: Neutron Soumtun <neo.neutron@gmail.com>
Forwarded: http://marc.info/?l=netfilter-devel&m=133696110909923&w=2
Last-Update: 2012-05-14

From 0283e5a47b900acd64b8cb7de302e9a46ade5808 Mon Sep 17 00:00:00 2001
From: Neutron Soutmun <neo.neutron@gmail.com>
Date: Mon, 14 May 2012 08:57:33 +0700
Subject: [PATCH] Fix typo

* lib/{data.c, parse.c}:
  - Fix typo of word "unkown" to "unknown".
---
 lib/data.c  |    2 +-
 lib/parse.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/data.c b/lib/data.c
index d74be4d..d6d29c2 100644
--- a/lib/data.c
+++ b/lib/data.c
@@ -364,7 +364,7 @@ ipset_data_set(struct ipset_data *data, enum ipset_opt opt, const void *value)
  * @opt: option kind of the requested data
  *
  * Returns the pointer to the requested kind of data from the data blob
- * if it is set. If the option kind is not set or is an unkown type,
+ * if it is set. If the option kind is not set or is an unknown type,
  * NULL is returned.
  */
 const void *
diff --git a/lib/parse.c b/lib/parse.c
index bc11ebb..8c67c58 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -1519,7 +1519,7 @@ ipset_parse_typename(struct ipset_session *session,
 	/* Find the corresponding type */
 	typename = ipset_typename_resolve(str);
 	if (typename == NULL)
-		return syntax_err("typename '%s' is unkown", str);
+		return syntax_err("typename '%s' is unknown", str);
 	ipset_session_data_set(session, IPSET_OPT_TYPENAME, typename);
 	type = ipset_type_get(session, IPSET_CMD_CREATE);
 
@@ -1591,7 +1591,7 @@ ipset_parse_output(struct ipset_session *session,
 	else if (STREQ(str, "save"))
 		return ipset_session_output(session, IPSET_LIST_SAVE);
 
-	return syntax_err("unkown output mode '%s'", str);
+	return syntax_err("unknown output mode '%s'", str);
 }
 
 /**
--
1.7.10