From dbf4cc7565dffbe4cd69e1cda28d5cf767f2f2b0 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Thu, 3 May 2018 23:54:10 +0800 Subject: [PATCH] update code --- dns_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns_client.c b/dns_client.c index 5e460cc..40f206f 100644 --- a/dns_client.c +++ b/dns_client.c @@ -31,7 +31,7 @@ struct dns_query_server { int fd; int type; char host[DNS_HOSTNAME_LEN]; - list_head list; + struct list_head list; }; struct dns_client { @@ -39,7 +39,7 @@ struct dns_client { int run; int epoll_fd; - list_head dns_server_list; + struct list_head dns_server_list; pthread_mutex_t map_lock; DECLARE_HASHTABLE(hostmap, 6);