From 9a1e34b9776657bc7d20b56108588d14eb7f4a7c Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sun, 10 Oct 2021 20:16:49 -0400 Subject: Do not ignore the returned value. Also don't make pointer const, because we pass it to a function that takes a non const pointer --- webext-surf.c | 6 +++--- 1 file 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; -- cgit v1.2.3