master - cleanup: include stdarg.h where needed.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=589983a257cd2f92489f41d2d7ec62784bf357e7 Commit: 589983a257cd2f92489f41d2d7ec62784bf357e7 Parent: b7741f0a831ef9dfd4fda19abba6ca8e91baa378 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Apr 15 13:27:47 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Apr 18 16:38:50 2014 +0200
cleanup: include stdarg.h where needed.
Avoid dependency on implicit inclusion of stdarg.h with libdevmapper.h.
--- daemons/clvmd/clvmd.c | 9 +++++---- daemons/dmeventd/dmeventd.c | 1 + .../dmeventd/plugins/snapshot/dmeventd_snapshot.c | 1 + daemons/dmeventd/plugins/thin/dmeventd_thin.c | 1 + lib/display/display.c | 1 + lib/misc/lvm-string.c | 1 + libdm/libdm-config.c | 1 + libdm/libdm-string.c | 1 + 8 files changed, 12 insertions(+), 4 deletions(-)
daemons/clvmd/clvmd.c +5 -4
@@ -19,10 +19,6 @@#include "clvmd-common.h" -#include <pthread.h> -#include <getopt.h> -#include <ctype.h> -#include "clvmd-comms.h" #include "clvm.h" #include "clvmd.h"
@@ -34,6 +30,11 @@#include <corosync/confdb.h> #endif +#include <pthread.h> +#include <getopt.h> +#include <ctype.h> +#include <stdarg.h> +#include <fcntl.h> #include <netinet/in.h> #include <signal.h>
daemons/dmeventd/dmeventd.c +1 -0
@@ -26,6 +26,7 @@//#include "libmultilog.h" #include "dm-logging.h" +#include <stdarg.h> #include <dlfcn.h> #include <errno.h> #include <pthread.h>
daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c +1 -0
@@ -20,6 +20,7 @@#include <sys/wait.h> #include <syslog.h> /* FIXME Replace syslog with multilog */ +#include <stdarg.h> /* FIXME Missing openlog? */ /* First warning when snapshot is 80% full. */
daemons/dmeventd/plugins/thin/dmeventd_thin.c +1 -0
@@ -20,6 +20,7 @@#include <sys/wait.h> #include <syslog.h> /* FIXME Replace syslog with multilog */ +#include <stdarg.h> /* FIXME Missing openlog? */ /* First warning when thin is 80% full. */
lib/display/display.c +1 -0
@@ -22,6 +22,7 @@#include "defaults.h" #include <math.h> /* fabs() */ #include <float.h> /* DBL_EPSILON */ +#include <stdarg.h> #define SIZE_BUF 128
lib/misc/lvm-string.c +1 -0
@@ -18,6 +18,7 @@#include "metadata-exported.h" #include <ctype.h> +#include <stdarg.h> int emit_to_buffer (char **buffer,size_t *size,const char *fmt, ...) {
libdm/libdm-config.c +1 -0
@@ -20,6 +20,7 @@#include <unistd.h> #include <fcntl.h> #include <ctype.h> +#include <stdarg.h> #define SECTION_B_CHAR '{'#define SECTION_E_CHAR '}'
libdm/libdm-string.c +1 -0
@@ -15,6 +15,7 @@#include "dmlib.h" #include <ctype.h> +#include <stdarg.h> /* * consume characters while they match the predicate function.