aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <brendan@inkdit.com>2011-05-20 10:39:36 -0400
committerGravatar Brendan Taylor <brendan@inkdit.com>2011-05-20 10:39:36 -0400
commit21539149b8bb628d89305873dcace871376db812 (patch)
tree46026b71073a7d9c286c898f25682ab09aa52688 /src
parentf5a41502f52ad3e26f5d5a11d58869cf37f12e7b (diff)
eval_js should take const gchar *script
Diffstat (limited to 'src')
-rw-r--r--src/uzbl-core.c2
-rw-r--r--src/uzbl-core.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c
index d349ca4..693f3ce 100644
--- a/src/uzbl-core.c
+++ b/src/uzbl-core.c
@@ -783,7 +783,7 @@ load_uri(WebKitWebView *web_view, GArray *argv, GString *result) {
/* Javascript*/
void
-eval_js(WebKitWebView * web_view, gchar *script, GString *result, const char *file) {
+eval_js(WebKitWebView * web_view, const gchar *script, GString *result, const char *file) {
WebKitWebFrame *frame;
JSGlobalContextRef context;
JSObjectRef globalobject;
diff --git a/src/uzbl-core.h b/src/uzbl-core.h
index 38f356f..ce42408 100644
--- a/src/uzbl-core.h
+++ b/src/uzbl-core.h
@@ -293,7 +293,7 @@ void dehilight (WebKitWebView *page, GArray *argv, GString *result);
/* Javascript functions */
void run_js (WebKitWebView * web_view, GArray *argv, GString *result);
void run_external_js (WebKitWebView * web_view, GArray *argv, GString *result);
-void eval_js(WebKitWebView * web_view, gchar *script, GString *result, const gchar *script_file);
+void eval_js(WebKitWebView *web_view, const gchar *script, GString *result, const gchar *script_file);
/* Network functions */
void handle_authentication (SoupSession *session,