fixes wrong int type that results in a crash on some platforms

Fri, 01 Sep 2017 20:08:09 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 01 Sep 2017 20:08:09 +0200
changeset 292
0a47ffc8b73b
parent 291
8828260d2fd8
child 293
8f90dcfd0439

fixes wrong int type that results in a crash on some platforms

bsd.mk file | annotate | diff | comparison | revisions
clang.mk file | annotate | diff | comparison | revisions
gcc.mk file | annotate | diff | comparison | revisions
libidav/session.c file | annotate | diff | comparison | revisions
libidav/webdav.c file | annotate | diff | comparison | revisions
osx.mk file | annotate | diff | comparison | revisions
suncc.mk file | annotate | diff | comparison | revisions
--- a/bsd.mk	Thu Aug 31 20:01:15 2017 +0200
+++ b/bsd.mk	Fri Sep 01 20:08:09 2017 +0200
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -O2 -c -D_FILE_OFFSET_BITS=64
+CFLAGS  = -g -c -D_FILE_OFFSET_BITS=64
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o
--- a/clang.mk	Thu Aug 31 20:01:15 2017 +0200
+++ b/clang.mk	Fri Sep 01 20:08:09 2017 +0200
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -O2 -c -D_FILE_OFFSET_BITS=64
+CFLAGS  = -g -c -D_FILE_OFFSET_BITS=64
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o
--- a/gcc.mk	Thu Aug 31 20:01:15 2017 +0200
+++ b/gcc.mk	Fri Sep 01 20:08:09 2017 +0200
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -std=gnu99 -O2 -c -D_FILE_OFFSET_BITS=64
+CFLAGS  = -std=gnu99 -g -c -D_FILE_OFFSET_BITS=64
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o
--- a/libidav/session.c	Thu Aug 31 20:01:15 2017 +0200
+++ b/libidav/session.c	Fri Sep 01 20:08:09 2017 +0200
@@ -360,7 +360,7 @@
     }
 }
 
-DavResource* dav_find_child(DavSession *sn, DavResource *res, UcxBuffer *rqbuf, char *name) {   
+DavResource* dav_find_child(DavSession *sn, DavResource *res, UcxBuffer *rqbuf, char *name) {
     if(res && !dav_propfind(sn, res, rqbuf)) {
         DavResource *child = res->children;
         while(child) {
--- a/libidav/webdav.c	Thu Aug 31 20:01:15 2017 +0200
+++ b/libidav/webdav.c	Fri Sep 01 20:08:09 2017 +0200
@@ -317,7 +317,7 @@
     UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND);
     DavResource *resource = root;
     CURLcode ret = do_propfind_request(handle, rqbuf, rpbuf);
-    int status = 0;
+    long status = 0;
     long error = 0;
     curl_easy_getinfo (handle, CURLINFO_RESPONSE_CODE, &status);
     if(ret == CURLE_OK && status == 207) {
--- a/osx.mk	Thu Aug 31 20:01:15 2017 +0200
+++ b/osx.mk	Fri Sep 01 20:08:09 2017 +0200
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -O2 -c -Wno-deprecated -Wno-format
+CFLAGS  = -g -c -Wno-deprecated -Wno-format
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o
--- a/suncc.mk	Thu Aug 31 20:01:15 2017 +0200
+++ b/suncc.mk	Fri Sep 01 20:08:09 2017 +0200
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -O2 -c -xc99 -D_FILE_OFFSET_BITS=64
+CFLAGS  =  -g -c -xc99 -D_FILE_OFFSET_BITS=64
 COFLAGS = -o
 LDFLAGS = -lmd -lm
 LOFLAGS = -o

mercurial