about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-22 12:19:57 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-22 12:19:57 -0700
commit8e09f77a7aee616096060d321798732221e69c09 (patch)
tree08dde9b4fff567203566e8538791f8ddda72cfe7
parenteea2111f6190c7f42c548c4bde3110834447a2fb (diff)
downloadrpatricia-8e09f77a7aee616096060d321798732221e69c09.tar.gz
reduce symbol visibility in rpatricia.c
There is no need for these functions and global variable
to be visible outside of rpatricia.c, so mark them as
static to avoid potential conflicts with other libraries.
-rw-r--r--ext/rpatricia/rpatricia.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/rpatricia/rpatricia.c b/ext/rpatricia/rpatricia.c
index 75000e1..ec8c6a3 100644
--- a/ext/rpatricia/rpatricia.c
+++ b/ext/rpatricia/rpatricia.c
@@ -8,9 +8,9 @@
 #include <stdlib.h>
 #include "patricia.h"
 
-VALUE cPatricia;
+static VALUE cPatricia;
 
-void dummy(void) {}
+static void dummy(void) {}
 
 static VALUE
 p_destroy (VALUE self)
@@ -21,7 +21,7 @@ p_destroy (VALUE self)
   return Qtrue;
 }
 
-VALUE
+static VALUE
 p_add (int argc, VALUE *argv, VALUE self)
 {
   int str_len;