Use globally defined strings instead of duplicating them here manually

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-04-28 13:35:11 +02:00
parent c0f70eda99
commit 8849c7d127

View File

@@ -748,9 +748,9 @@ void _FTL_cache(const unsigned int flags, const char *name, const struct all_add
unsigned char requesttype = 0;
if(flags & F_HOSTS)
{
if(arg != NULL && strcmp(arg, "gravity") == 0)
if(arg != NULL && strcmp(arg, SRC_GRAVITY_NAME) == 0)
requesttype = QUERY_GRAVITY;
else if(arg != NULL && strcmp(arg, "blacklist") == 0)
else if(arg != NULL && strcmp(arg, SRC_BLACK_NAME) == 0)
requesttype = QUERY_BLACKLIST;
else // local.list, hostname.list, /etc/hosts and others
requesttype = QUERY_CACHE;