diff --git a/src/common_define.h b/src/common_define.h index ff49471..68b9a9a 100644 --- a/src/common_define.h +++ b/src/common_define.h @@ -244,10 +244,10 @@ typedef void* (*MallocFunc)(size_t size); (dest).len = strlen(src); \ } while (0) -#define FC_SET_STRING_EX(dest, src, len) \ +#define FC_SET_STRING_EX(dest, s, l) \ do { \ - (dest).str = src; \ - (dest).len = len; \ + (dest).str = s; \ + (dest).len = l; \ } while (0) #define FC_SET_STRING_NULL(dest) \ diff --git a/src/http_func.c b/src/http_func.c index 721a562..6ccc2f6 100644 --- a/src/http_func.c +++ b/src/http_func.c @@ -21,6 +21,7 @@ #include "sockopt.h" #include "logger.h" #include "shared_func.h" +#include "http_func.h" int get_url_content_ex(const char *url, const int url_len, const int connect_timeout, const int network_timeout,