fixes some warnings

Sun, 17 Dec 2017 14:35:01 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 17 Dec 2017 14:35:01 +0100
changeset 351
11789a88d0b0
parent 350
5fc457fb2cb1
child 352
76bd29a11cc9

fixes some warnings

dav/tar.c file | annotate | diff | comparison | revisions
libidav/davqlexec.c file | annotate | diff | comparison | revisions
--- a/dav/tar.c	Sun Dec 17 14:26:03 2017 +0100
+++ b/dav/tar.c	Sun Dec 17 14:35:01 2017 +0100
@@ -118,7 +118,8 @@
     h.version[1] = '0';
     // uname/gname - zero
     // devmajor/devminor
-    snprintf(h.devmajor, 16, "%015o", 0);
+    char *devbuf = (char*)h.devmajor;
+    snprintf(devbuf, 16, "%015o", 0);
     h.devmajor[7] = ' ';
     h.devminor[7] = ' ';
     // prefix
--- a/libidav/davqlexec.c	Sun Dec 17 14:26:03 2017 +0100
+++ b/libidav/davqlexec.c	Sun Dec 17 14:35:01 2017 +0100
@@ -934,6 +934,7 @@
             res = sstrcmp(s1, s2) >= 0;
             break;
         }
+        default: break;
     }
     
     if(obj1.type == 0) {

mercurial