fish, inspector: get rid of COMPILING_VIRT_INSPECTOR

All the define was doing in options.h was masking the declaration of
inspect_mount_root, which was always built-in in inspect.c (because of
the unconditional #define there) anyway.

Since this is common code used by all the C tools, try to avoid extra
knobs which add different code paths for no benefit.
This commit is contained in:
Pino Toscano
2016-09-26 11:45:07 +02:00
parent 284c6e1078
commit 23ca442f63
3 changed files with 1 additions and 7 deletions

View File

@@ -39,7 +39,6 @@
/* These definitions ensure we get all extern definitions from the header. */
#define COMPILING_GUESTFISH 1
#define COMPILING_VIRT_INSPECTOR 1
#include "options.h"
/* Global that saves the root device between inspect_mount and

View File

@@ -119,17 +119,13 @@ extern int add_libvirt_drives (guestfs_h *g, const char *guest);
/* in inspect.c */
extern void inspect_mount_handle (guestfs_h *g);
extern void inspect_mount_root (guestfs_h *g, const char *root);
#define inspect_mount() inspect_mount_handle (g)
#if COMPILING_GUESTFISH
extern void print_inspect_prompt (void);
#endif
#if COMPILING_VIRT_INSPECTOR
/* (low-level inspection functions, used by virt-inspector only) */
extern void inspect_mount_root (guestfs_h *g, const char *root);
#endif
/* in key.c */
extern char *read_key (const char *param);

View File

@@ -69,7 +69,6 @@ virt_inspector_SOURCES = \
inspector.c
virt_inspector_CPPFLAGS = \
-DCOMPILING_VIRT_INSPECTOR=1 \
-DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/src -I$(top_builddir)/src \