Introduction
Introduction Statistics Contact Development Disclaimer Help
remove unuseful castings - surf-adblock - Surf adblock web extension
git clone git://git.codemadness.org/surf-adblock
Log
Files
Refs
README
LICENSE
---
commit cbebae04e483491bf237fe84393ac46c759742c8
parent b86adf21767a22614e170a19b19eaf116a422532
Author: Quentin Rameau <[email protected]>
Date: Sat, 16 Jul 2016 19:21:56 +0200
remove unuseful castings
Diffstat:
M 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 */
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.