Fix some compilation -Wextra warnings
authorChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 14 Jan 2013 09:09:49 +0000 (10:09 +0100)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 14 Jan 2013 09:09:49 +0000 (10:09 +0100)
Reported by Xose Vasquez Perez.
The dasd struct change was acked by Stefan Weinhuber.

kpartx/dasd.h
libmultipath/log_pthread.c

index 0ed7c80..42f94db 100644 (file)
@@ -68,7 +68,7 @@ typedef struct volume_label
        char res2[4];           /* reserved                                  */
        char lvtoc[14];         /* owner code for LVTOC                      */
        char res3[28];          /* reserved                                  */
-       char ldl_version;       /* version number, valid for ldl format      */
+       uint8_t ldl_version;    /* version number, valid for ldl format      */
        uint64_t formatted_blocks; /* valid when ldl_version >= f2           */
 } __attribute__ ((packed)) volume_label_t;
 
index c5c4d65..b8f9119 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <syslog.h>
 #include <pthread.h>
 #include <sys/mman.h>