about summary refs log tree commit
path: root/ext/rpatricia/rpatricia.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rpatricia/rpatricia.c')
-rw-r--r--ext/rpatricia/rpatricia.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/rpatricia/rpatricia.c b/ext/rpatricia/rpatricia.c
index ae018af..98b9b35 100644
--- a/ext/rpatricia/rpatricia.c
+++ b/ext/rpatricia/rpatricia.c
@@ -43,10 +43,10 @@ wrap_node(patricia_node_t *orig)
 }
 
 static prefix_t *
-my_ascii2prefix(int family, VALUE str)
+my_ascii2prefix(VALUE str)
 {
   char *cstr = StringValuePtr(str);
-  prefix_t *prefix = ascii2prefix(family, cstr);
+  prefix_t *prefix = ascii2prefix(cstr);
 
   if (!prefix)
     rb_raise(rb_eArgError, "invalid prefix: %s", cstr);
@@ -66,7 +66,7 @@ p_add (int argc, VALUE *argv, VALUE self)
     return Qnil;
 
   Data_Get_Struct(self, patricia_tree_t, tree);
-  prefix = my_ascii2prefix(AF_INET, argv[0]);
+  prefix = my_ascii2prefix(argv[0]);
   node = patricia_lookup(tree, prefix);
   Deref_Prefix(prefix);
 
@@ -93,7 +93,7 @@ p_remove (VALUE self, VALUE r_key)
   prefix_t *prefix;
 
   Data_Get_Struct(self, patricia_tree_t, tree);
-  prefix = my_ascii2prefix (AF_INET, r_key);
+  prefix = my_ascii2prefix(r_key);
   node = patricia_search_exact(tree, prefix);
   Deref_Prefix (prefix);
 
@@ -113,7 +113,7 @@ p_match (VALUE self, VALUE r_key)
   prefix_t *prefix;
   
   Data_Get_Struct(self, patricia_tree_t, tree);
-  prefix = my_ascii2prefix (AF_INET, r_key);
+  prefix = my_ascii2prefix(r_key);
   node = patricia_search_best(tree, prefix);
   Deref_Prefix (prefix);
 
@@ -128,7 +128,7 @@ p_include (VALUE self, VALUE r_key)
   prefix_t *prefix;
 
   Data_Get_Struct(self, patricia_tree_t, tree);
-  prefix = my_ascii2prefix (AF_INET, r_key);
+  prefix = my_ascii2prefix(r_key);
   node = patricia_search_best(tree, prefix);
   Deref_Prefix (prefix);
 
@@ -143,7 +143,7 @@ p_match_exact (VALUE self, VALUE r_key)
   prefix_t *prefix;
 
   Data_Get_Struct(self, patricia_tree_t, tree);
-  prefix = my_ascii2prefix (AF_INET, r_key);
+  prefix = my_ascii2prefix(r_key);
   node = patricia_search_exact(tree, prefix);
   Deref_Prefix (prefix);