Commit 8f5f0eeb authored by Amin Ben Ramdhane's avatar Amin Ben Ramdhane

Fix BulkData compilation error

parent 466b3842
Pipeline #985 passed with stage
in 48 seconds
......@@ -63,7 +63,7 @@ static char **str_split(const char* str, const char* delim, size_t* numtokens)
return tokens;
}
static bool match(const char *string, const char *pattern)
static bool bulkdata_match(const char *string, const char *pattern)
{
regex_t re;
if (regcomp(&re, pattern, REG_EXTENDED) != 0) return 0;
......@@ -77,7 +77,7 @@ static bool is_res_required(char *str, int *start, int *len)
{
char temp_char[NAME_MAX] = {'\0'};
if (match(str, GLOB_CHAR)) {
if (bulkdata_match(str, GLOB_CHAR)) {
int s_len = strlen(str);
int b_len = s_len, p_len = s_len;
......@@ -90,7 +90,7 @@ static bool is_res_required(char *str, int *start, int *len)
strncpy(temp_char, str+*start, *len);
if(match(temp_char, "[*+]+"))
if (bulkdata_match(temp_char, "[*+]+"))
return true;
}
*start = strlen(str);
......
......@@ -185,7 +185,7 @@ int http_send_message(struct profile *profile, char *msg_out, int msg_out_len, c
if (http_code != 200 && http_code != 204)
goto error;
curl_easy_reset_no_auth(curl);
curl_easy_reset(curl);
if (http_c.header_list) {
curl_slist_free_all(http_c.header_list);
http_c.header_list = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment