libidav/webdav.c

changeset 205
bf756f6c3581
parent 185
cd42cccee550
child 223
cbbdf207e67e
--- a/libidav/webdav.c	Thu Mar 03 15:52:18 2016 +0100
+++ b/libidav/webdav.c	Sat Mar 05 19:28:24 2016 +0100
@@ -293,7 +293,7 @@
     //printf("\n");
     
     CURLcode ret = do_propfind_request(handle, rqbuf, rpbuf);
-    int status = 0;
+    long status = 0;
     curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status);
     if(ret == CURLE_OK && status == 207) {
         //printf("response\n%s\n", rpbuf->space);
@@ -325,7 +325,7 @@
     DavResource *resource = root;
     CURLcode ret = do_propfind_request(handle, rqbuf, rpbuf);
     int status = 0;
-    int error = 0;
+    long error = 0;
     curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status);
     if(ret == CURLE_OK && status == 207) {
         //printf("response\n%s\n", rpbuf->space); 

mercurial