mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: include stdarg.h where needed.
Avoid dependency on implicit inclusion of stdarg.h with libdevmapper.h.
This commit is contained in:
parent
b7741f0a83
commit
589983a257
@ -19,10 +19,6 @@
|
|||||||
|
|
||||||
#include "clvmd-common.h"
|
#include "clvmd-common.h"
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <getopt.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
#include "clvmd-comms.h"
|
#include "clvmd-comms.h"
|
||||||
#include "clvm.h"
|
#include "clvm.h"
|
||||||
#include "clvmd.h"
|
#include "clvmd.h"
|
||||||
@ -34,6 +30,11 @@
|
|||||||
#include <corosync/confdb.h>
|
#include <corosync/confdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <getopt.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
//#include "libmultilog.h"
|
//#include "libmultilog.h"
|
||||||
#include "dm-logging.h"
|
#include "dm-logging.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <syslog.h> /* FIXME Replace syslog with multilog */
|
#include <syslog.h> /* FIXME Replace syslog with multilog */
|
||||||
|
#include <stdarg.h>
|
||||||
/* FIXME Missing openlog? */
|
/* FIXME Missing openlog? */
|
||||||
|
|
||||||
/* First warning when snapshot is 80% full. */
|
/* First warning when snapshot is 80% full. */
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <syslog.h> /* FIXME Replace syslog with multilog */
|
#include <syslog.h> /* FIXME Replace syslog with multilog */
|
||||||
|
#include <stdarg.h>
|
||||||
/* FIXME Missing openlog? */
|
/* FIXME Missing openlog? */
|
||||||
|
|
||||||
/* First warning when thin is 80% full. */
|
/* First warning when thin is 80% full. */
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "defaults.h"
|
#include "defaults.h"
|
||||||
#include <math.h> /* fabs() */
|
#include <math.h> /* fabs() */
|
||||||
#include <float.h> /* DBL_EPSILON */
|
#include <float.h> /* DBL_EPSILON */
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define SIZE_BUF 128
|
#define SIZE_BUF 128
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "metadata-exported.h"
|
#include "metadata-exported.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
int emit_to_buffer(char **buffer, size_t *size, const char *fmt, ...)
|
int emit_to_buffer(char **buffer, size_t *size, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define SECTION_B_CHAR '{'
|
#define SECTION_B_CHAR '{'
|
||||||
#define SECTION_E_CHAR '}'
|
#define SECTION_E_CHAR '}'
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "dmlib.h"
|
#include "dmlib.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* consume characters while they match the predicate function.
|
* consume characters while they match the predicate function.
|
||||||
|
Loading…
Reference in New Issue
Block a user