Remove unneeded #include directives. Correct the comments next to the #include directives in multipathd/pidfile.c. Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> --- libmultipath/lock.c | 2 -- libmultipath/lock.h | 2 +- libmultipath/uevent.c | 1 - multipathd/pidfile.c | 8 +++----- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/libmultipath/lock.c b/libmultipath/lock.c index ec53a5e..8d7b2ad 100644 --- a/libmultipath/lock.c +++ b/libmultipath/lock.c @@ -1,6 +1,4 @@ -#include <pthread.h> #include "lock.h" -#include <stdio.h> void cleanup_lock (void * data) { diff --git a/libmultipath/lock.h b/libmultipath/lock.h index 97af0f4..c569f01 100644 --- a/libmultipath/lock.h +++ b/libmultipath/lock.h @@ -1,7 +1,7 @@ #ifndef _LOCK_H #define _LOCK_H -#include <signal.h> +#include <pthread.h> /* * Wrapper for the mutex. Includes a ref-count to keep diff --git a/libmultipath/uevent.c b/libmultipath/uevent.c index 5f3204b..6247898 100644 --- a/libmultipath/uevent.c +++ b/libmultipath/uevent.c @@ -37,7 +37,6 @@ #include <linux/types.h> #include <linux/netlink.h> #include <pthread.h> -#include <signal.h> #include <limits.h> #include <sys/mman.h> #include <libudev.h> diff --git a/multipathd/pidfile.c b/multipathd/pidfile.c index 9bac1dd..47d18e2 100644 --- a/multipathd/pidfile.c +++ b/multipathd/pidfile.c @@ -1,11 +1,9 @@ #include <sys/types.h> /* for pid_t */ #include <sys/stat.h> /* for open */ -#include <signal.h> /* for kill() */ -#include <errno.h> /* for ESHRC */ -#include <stdio.h> /* for f...() */ +#include <errno.h> /* for EACCESS and EAGAIN */ +#include <stdio.h> /* for snprintf() */ #include <string.h> /* for memset() */ -#include <stdlib.h> /* for atoi() */ -#include <unistd.h> /* for unlink() */ +#include <unistd.h> /* for ftruncate() */ #include <fcntl.h> /* for fcntl() */ #include "debug.h" -- 2.9.2 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel