From c4a2698e227e4f7162a8dab5c174e84f4dbc38f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 19 Apr 2018 10:15:53 +0200 Subject: [PATCH] Remove unused vars in test-is-public-all.c --- tests/test-is-public-all.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test-is-public-all.c b/tests/test-is-public-all.c index 6a317ac..977f7ff 100644 --- a/tests/test-is-public-all.c +++ b/tests/test-is-public-all.c @@ -80,7 +80,6 @@ static void test_ps(const psl_ctx_t *psl, const char *domain, int type, int expe /* section: either PSL_TYPE_PRIVATE or PSL_TYPE_ICANN */ static void test_type_any(const psl_ctx_t *psl, const char *domain, int type, int expected) { - int result; int wildcard = (*domain == '.'); int tld = !(strchr(domain + wildcard, '.')); @@ -110,8 +109,6 @@ static void test_type_any(const psl_ctx_t *psl, const char *domain, int type, in static void test_psl_entry(const psl_ctx_t *psl, const char *domain, int type) { - int result; - if (*domain == '!') { /* an exception to a wildcard, e.g. !www.ck (wildcard is *.ck) */ test_type_any(psl, domain + 1, type, 0); /* the exception itself is not a PS */