Minor fixes to "daemon: Split out command* functions and CLEANUP_* macros."

This updates commit d94860d7e8.

Thanks: Pino Toscano.
This commit is contained in:
Richard W.M. Jones
2016-01-22 12:52:33 +00:00
parent ac5fe225a9
commit 2cb8e5ddb8
2 changed files with 4 additions and 5 deletions

View File

@@ -19,7 +19,9 @@
#ifndef GUESTFSD_CLEANUPS_H
#define GUESTFSD_CLEANUPS_H
/* Used by the CLEANUP_* macros. */
/* These functions are used internally by the CLEANUP_* macros.
* Don't call them directly.
*/
extern void cleanup_free (void *ptr);
extern void cleanup_free_string_list (void *ptr);
extern void cleanup_unlink_free (void *ptr);

View File

@@ -31,6 +31,7 @@
#include "ignore-value.h"
#include "guestfs-internal-all.h"
#include "command.h"
#include "cleanups.h"
@@ -39,10 +40,6 @@ extern int verbose;
extern const char *sysroot;
extern size_t sysroot_len;
#ifndef MAX
# define MAX(a,b) ((a)>(b)?(a):(b))
#endif
/* For improved readability dealing with pipe arrays */
#define PIPE_READ 0
#define PIPE_WRITE 1