1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

cleanup: include stdarg.h where needed.

Avoid dependency on implicit inclusion of stdarg.h with
libdevmapper.h.
This commit is contained in:
Zdenek Kabelac 2014-04-15 13:27:47 +02:00
parent b7741f0a83
commit 589983a257
8 changed files with 12 additions and 4 deletions

View File

@ -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>

View File

@ -26,6 +26,7 @@
//#include "libmultilog.h"
#include "dm-logging.h"
#include <stdarg.h>
#include <dlfcn.h>
#include <errno.h>
#include <pthread.h>

View File

@ -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. */

View File

@ -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. */

View File

@ -22,6 +22,7 @@
#include "defaults.h"
#include <math.h> /* fabs() */
#include <float.h> /* DBL_EPSILON */
#include <stdarg.h>
#define SIZE_BUF 128

View File

@ -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, ...)
{

View File

@ -20,6 +20,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <stdarg.h>
#define SECTION_B_CHAR '{'
#define SECTION_E_CHAR '}'

View File

@ -15,6 +15,7 @@
#include "dmlib.h"
#include <ctype.h>
#include <stdarg.h>
/*
* consume characters while they match the predicate function.