surf-adblock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cbebae04e483491bf237fe84393ac46c759742c8
parent b86adf21767a22614e170a19b19eaf116a422532
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sat, 16 Jul 2016 19:21:56 +0200

remove unuseful castings

Diffstat:
surf-adblock.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/surf-adblock.c b/surf-adblock.c @@ -702,7 +702,7 @@ documentloaded(WebKitWebPage *wp, Page *p) WebKitDOMElement *el; String sitecss; struct filterrule *r; - char *uri = estrdup((char *)webkit_web_page_get_uri(p->webpage)); + char *uri = estrdup(webkit_web_page_get_uri(p->webpage)); char *domain, *s; /* TODO: improve, hacky */ @@ -755,8 +755,8 @@ sendrequest(WebKitWebPage *wp, WebKitURIRequest *req, { struct filterrule *r; - char *uri = estrdup((char *)webkit_web_page_get_uri(p->webpage)); - char *requri = (char *)webkit_uri_request_get_uri(req); + const char *requri = webkit_uri_request_get_uri(req); + char *uri = estrdup(webkit_web_page_get_uri(p->webpage)); char *domain, *s; /* TODO: improve, hacky */