From 8e09f77a7aee616096060d321798732221e69c09 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 22 Apr 2010 12:19:57 -0700 Subject: 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. --- ext/rpatricia/rpatricia.c | 6 +++--- 1 file 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 #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; -- cgit v1.2.3-24-ge0c7