diff --git a/include/libpsl.h b/include/libpsl.h index 9a7c934..349e88c 100644 --- a/include/libpsl.h +++ b/include/libpsl.h @@ -53,7 +53,7 @@ void psl_ctx_t * psl_load_file(const char *fname); int - psl_is_tld(const psl_ctx_t *psl, const char *domain); + psl_is_public(const psl_ctx_t *psl, const char *domain); /* does not include exceptions */ int diff --git a/src/psl.c b/src/psl.c index 88ccc9e..2b31f81 100644 --- a/src/psl.c +++ b/src/psl.c @@ -210,7 +210,7 @@ static void _suffix_init(_psl_entry_t *suffix, const char *rule, size_t length) *dst = 0; } -int psl_is_tld(const psl_ctx_t *psl, const char *domain) +int psl_is_public(const psl_ctx_t *psl, const char *domain) { _psl_entry_t suffix, *rule; const char *p, *label_bak; diff --git a/tests/Makefile.am b/tests/Makefile.am index 8f5c810..f6d6f11 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,11 +4,11 @@ AM_CPPFLAGS = -Wno-missing-field-initializers -I$(top_srcdir)/include AM_LDFLAGS = -static LDADD = ../src/libpsl-@LIBPSL_API_VERSION@.la -PSL_TESTS = test-is-tld +PSL_TESTS = test-is-public check_PROGRAMS = $(PSL_TESTS) -test_is_tld_SOURCES = test-is-tld.c +test_is_tld_SOURCES = test-is-public.c test_is_tld_LDADD = ../src/libpsl-@LIBPSL_API_VERSION@.la TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@" diff --git a/tests/test-is-tld.c b/tests/test-is-public.c similarity index 98% rename from tests/test-is-tld.c rename to tests/test-is-public.c index 1868af0..1bfdc6b 100644 --- a/tests/test-is-tld.c +++ b/tests/test-is-public.c @@ -69,7 +69,7 @@ static void test_psl(void) for (it = 0; it < countof(test_data); it++) { const struct test_data *t = &test_data[it]; - int result = psl_is_tld(psl, t->domain); + int result = psl_is_public(psl, t->domain); if (result == t->result) { ok++;