Browse Source

update code

Nick Peng 7 years ago
parent
commit
dbf4cc7565
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dns_client.c

+ 2 - 2
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);