aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-12-10 20:02:35 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-10 20:02:35 +0100
commit8beab5bcc4048158791427021a3cc3b3bb9c88f7 (patch)
tree8ff480273c42a380e68eb646b9e070ff8da26c70 /plugins
parentbac9fecf950ba3c47a6af74187faef027bc96c4a (diff)
downloadpacrunner-8beab5bcc4048158791427021a3cc3b3bb9c88f7.tar.gz
v8: js_driver function should be static
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mozjs.c2
-rw-r--r--plugins/v8.cc12
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/mozjs.c b/plugins/mozjs.c
index 0521f36..f717ff2 100644
--- a/plugins/mozjs.c
+++ b/plugins/mozjs.c
@@ -41,7 +41,7 @@
static GStaticMutex mozjs_mutex = G_STATIC_MUTEX_INIT;
-struct pacrunner_proxy *current_proxy = NULL;
+static struct pacrunner_proxy *current_proxy = NULL;
static int getaddr(const char *node, char *host, size_t hostlen)
{
diff --git a/plugins/v8.cc b/plugins/v8.cc
index 18c46b5..117e0f0 100644
--- a/plugins/v8.cc
+++ b/plugins/v8.cc
@@ -41,10 +41,10 @@ extern "C" {
#include "js.h"
};
-struct pacrunner_proxy *current_proxy = NULL;
-v8::Persistent<v8::Context> jsctx;
-v8::Persistent<v8::Function> jsfn;
-guint gc_source = 0;
+static struct pacrunner_proxy *current_proxy = NULL;
+static v8::Persistent<v8::Context> jsctx;
+static v8::Persistent<v8::Function> jsfn;
+static guint gc_source = 0;
static gboolean v8_gc(gpointer user_data)
{
@@ -218,7 +218,7 @@ static void destroy_object(void)
}
}
-int v8_set_proxy(struct pacrunner_proxy *proxy)
+static int v8_set_proxy(struct pacrunner_proxy *proxy)
{
v8::Locker lck;
@@ -239,7 +239,7 @@ int v8_set_proxy(struct pacrunner_proxy *proxy)
}
-char *v8_execute(const char *url, const char *host)
+static char *v8_execute(const char *url, const char *host)
{
v8::Locker lck;