remove #if 1, fix a warning - surf-adblock - Surf adblock web extension
 (HTM) git clone git://git.codemadness.org/surf-adblock
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0214a0a1e2acd1cff989e0292389626429d909fc
 (DIR) parent 362d380c606bf80d11d59682ec33bbe64534b50f
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 19 Jul 2016 19:23:19 +0200
       
       remove #if 1, fix a warning
       
       Diffstat:
         M surf-adblock.c                      |       7 ++-----
       
       1 file changed, 2 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/surf-adblock.c b/surf-adblock.c
       @@ -433,7 +433,7 @@ parsedomains(const char *s, int sep, struct filterdomain **head)
        
                        if (!(d = wecalloc(1, sizeof(struct filterdomain))))
                                return -1;
       -                if (p = strchr(s, sep)) { /* TODO: should not contain ',' */
       +                if ((p = strchr(s, sep))) { /* TODO: should not contain ',' */
                                d->domain = westrndup(s, p - s);
                                s = p + 1;
                        } else {
       @@ -775,7 +775,6 @@ documentloaded(WebKitWebPage *wp, Page *p)
                printf("uri: %s\n", uri);
                printf("domain: %s\n", domain);
        
       -#if 1
                /* site-specific CSS */
                memset(&sitecss, 0, sizeof(sitecss));
                for (r = rules; r; r = r->next) {
       @@ -789,11 +788,9 @@ documentloaded(WebKitWebPage *wp, Page *p)
                                return;
                }
                printf("sitecss: %s\n", sitecss.data ? sitecss.data : "<empty>");
       -#endif
        
                p->view = webkit_dom_document_get_default_view(doc);
        
       -#if 1
                if (globalcss.data) {
                        el = webkit_dom_document_create_element(doc, "style", NULL);
                        webkit_dom_element_set_attribute(el, "type", "text/css", NULL);
       @@ -809,7 +806,7 @@ documentloaded(WebKitWebPage *wp, Page *p)
                        webkit_dom_node_append_child(WEBKIT_DOM_NODE(body),
                                                     WEBKIT_DOM_NODE(el), NULL);
                }
       -#endif
       +
                free(sitecss.data);
        }