dav/error.c

changeset 192
d10194a51304
parent 191
0e45b04236a7
child 207
de23f8881e9f
--- a/dav/error.c	Fri Feb 26 20:54:42 2016 +0100
+++ b/dav/error.c	Sat Feb 27 17:18:00 2016 +0100
@@ -29,7 +29,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "../libidav/utils.h"
+#include <libidav/utils.h>
 
 #include "error.h"
 
@@ -57,12 +57,14 @@
         }
         case DAV_METHOD_NOT_ALLOWED: {
             fprintf(stderr, "Method not allowed.\n");
+            break;
         }
         case DAV_CONFLICT: {
             fprintf(
                     stderr,
                     "Missing intermediate collections for resource %s.\n",
                     res_url);
+            break;
         }
         case DAV_UNSUPPORTED_PROTOCOL: {
             fprintf(stderr, "Unsupported protocol.\n");
@@ -92,6 +94,7 @@
             if(sn->errorstr) {
                 fprintf(stderr, "%s\n", sn->errorstr);
             }
+            break;
         }
     }
     free(res_url);

mercurial