mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Fix linux build
This commit is contained in:
parent
79a6c2653c
commit
eca134fbbf
@ -629,14 +629,14 @@ static int Http_UpdateProgress(void* ptr, double total, double received, double
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct curl_slist* headersList;
|
static struct curl_slist* headers_list;
|
||||||
static void Http_AddHeader(const char* key, const String* value) {
|
static void Http_AddHeader(const char* key, const String* value) {
|
||||||
String tmp; char tmpBuffer[1024];
|
String tmp; char tmpBuffer[1024];
|
||||||
String_InitArray_NT(tmp, tmpBuffer);
|
String_InitArray_NT(tmp, tmpBuffer);
|
||||||
String_Format2(&tmp, "%c: %s", key, value);
|
String_Format2(&tmp, "%c: %s", key, value);
|
||||||
|
|
||||||
tmp.buffer[tmp.length] = '\0';
|
tmp.buffer[tmp.length] = '\0';
|
||||||
headersList = curl_slist_append(headersList, tmp.buffer);
|
headers_list = curl_slist_append(headers_list, tmp.buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Processes a HTTP header downloaded from the server */
|
/* Processes a HTTP header downloaded from the server */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user