about summary refs log tree commit homepage
path: root/ext/unicorn_http/global_variables.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-18 18:48:38 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-18 19:30:51 -0800
commit4ee6275918cf15c1c380e0adc46e2516433d76fa (patch)
treeaebfeb651c22cb3a1cbbff36f8de20c1a3880821 /ext/unicorn_http/global_variables.h
parent4347b8987732b5bea83ddb8fb9605cf2c4a1c2fe (diff)
downloadunicorn-4ee6275918cf15c1c380e0adc46e2516433d76fa.tar.gz
* init_globals() is a static function, avoid conflicting
  with any potential libraries out there...

* mUnicorn and cHttpParser do not need to be static globals
  they're not used outside of Init_unicorn_http().
Diffstat (limited to 'ext/unicorn_http/global_variables.h')
-rw-r--r--ext/unicorn_http/global_variables.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/unicorn_http/global_variables.h b/ext/unicorn_http/global_variables.h
index e593cf6..7319bcd 100644
--- a/ext/unicorn_http/global_variables.h
+++ b/ext/unicorn_http/global_variables.h
@@ -1,7 +1,5 @@
 #ifndef global_variables_h
 #define global_variables_h
-static VALUE mUnicorn;
-static VALUE cHttpParser;
 static VALUE eHttpParserError;
 
 static VALUE g_rack_url_scheme;
@@ -61,7 +59,7 @@ DEF_MAX_LENGTH(REQUEST_PATH, 1024);
 DEF_MAX_LENGTH(QUERY_STRING, (1024 * 10));
 DEF_MAX_LENGTH(HEADER, (1024 * (80 + 32)));
 
-void init_globals(void)
+static void init_globals(void)
 {
   DEF_GLOBAL(rack_url_scheme, "rack.url_scheme");
   DEF_GLOBAL(request_method, "REQUEST_METHOD");