Remove unused vars in test-is-public-all.c

This commit is contained in:
Tim Rühsen 2018-04-19 10:15:53 +02:00
parent 6244c731b9
commit c4a2698e22
1 changed files with 0 additions and 3 deletions

View File

@ -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 */ /* 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) static void test_type_any(const psl_ctx_t *psl, const char *domain, int type, int expected)
{ {
int result;
int wildcard = (*domain == '.'); int wildcard = (*domain == '.');
int tld = !(strchr(domain + wildcard, '.')); 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) 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) */ 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 */ test_type_any(psl, domain + 1, type, 0); /* the exception itself is not a PS */