summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2021-10-10 20:16:49 -0400
committerRobby Zambito <contact@robbyzambito.me>2021-10-10 20:16:49 -0400
commit9a1e34b9776657bc7d20b56108588d14eb7f4a7c (patch)
tree49580184677d390e77733f8d132f2217bb05d548
parent6a0f9716ded4c4af8f791612132c6a398bbf8dbc (diff)
Do not ignore the returned value.surf-webkit2
Also don't make pointer const, because we pass it to a function that takes a non const pointer
-rw-r--r--webext-surf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/webext-surf.c b/webext-surf.c
index d087219..88d807c 100644
--- a/webext-surf.c
+++ b/webext-surf.c
@@ -72,7 +72,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused)
snprintf(js, sizeof(js),
"window.scrollBy(window.innerWidth/100*%d,0);",
msg[2]);
- jsc_context_evaluate(jsc, js, -1);
+ JSCValue *res = jsc_context_evaluate(jsc, js, -1);
break;
case 'v':
if (msgsz != 3)
@@ -80,7 +80,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused)
snprintf(js, sizeof(js),
"window.scrollBy(0,window.innerHeight/100*%d);",
msg[2]);
- jsc_context_evaluate(jsc, js, -1);
+ res = jsc_context_evaluate(jsc, js, -1);
break;
}
@@ -89,7 +89,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused)
G_MODULE_EXPORT void
webkit_web_extension_initialize_with_user_data(WebKitWebExtension *e,
- const GVariant *gv)
+ GVariant *gv)
{
GIOChannel *gchansock;