Skip to content

Commit da0e693

Browse files
committed
Fixed some compile errors on windows.
1 parent 818b429 commit da0e693

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ds3.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ static xmlDocPtr _generate_xml_objects_list(const ds3_bulk_object_list* obj_list
14451445

14461446
static bool _is_bulk_get(const struct _ds3_request* request) {
14471447

1448-
char* value = g_hash_table_lookup(request->query_params, "operation");
1448+
char* value = (char *) g_hash_table_lookup(request->query_params, "operation");
14491449

14501450
if (strcmp(value, "start_bulk_get") == 0) {
14511451
return true;
@@ -1550,7 +1550,7 @@ ds3_error* ds3_allocate_chunk(const ds3_client* client, const ds3_request* reque
15501550
if(doc == NULL) {
15511551
g_byte_array_free(xml_blob, TRUE);
15521552
if (g_hash_table_contains(response_headers, "Retry-After")) {
1553-
ds3_response->retry_after = strtoul(g_hash_table_lookup(response_headers, "Retry-After"), NULL, 10);
1553+
ds3_response->retry_after = strtoul((char*)g_hash_table_lookup(response_headers, "Retry-After"), NULL, 10);
15541554
} else {
15551555
g_hash_table_destroy(response_headers);
15561556
return _ds3_create_error(DS3_ERROR_REQUEST_FAILED, "We did not get a response and did not find the 'Retry-After Header'");
@@ -1608,7 +1608,7 @@ ds3_error* ds3_get_available_chunks(const ds3_client* client, const ds3_request*
16081608
if (doc == NULL) {
16091609
g_byte_array_free(xml_blob, TRUE);
16101610
if (g_hash_table_contains(response_headers, "Retry-After")) {
1611-
ds3_response->retry_after = strtoul(g_hash_table_lookup(response_headers, "Retry-After"), NULL, 10);
1611+
ds3_response->retry_after = strtoul((char*)g_hash_table_lookup(response_headers, "Retry-After"), NULL, 10);
16121612
} else {
16131613
g_hash_table_destroy(response_headers);
16141614
return _ds3_create_error(DS3_ERROR_REQUEST_FAILED, "We did not get a response and did not find the 'Retry-After Header'");

win32/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj/

0 commit comments

Comments
 (0)