git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inspect: win64 regexp was dead code.
[libguestfs.git]
/
src
/
inspect.c
diff --git
a/src/inspect.c
b/src/inspect.c
index
e7b1e41
..
12cecfa
100644
(file)
--- a/
src/inspect.c
+++ b/
src/inspect.c
@@
-29,7
+29,6
@@
#include <pcre.h>
#include <magic.h>
#include <hivex.h>
#include <pcre.h>
#include <magic.h>
#include <hivex.h>
-#include <augeas.h>
#include "c-ctype.h"
#include "ignore-value.h"
#include "c-ctype.h"
#include "ignore-value.h"
@@
-46,7
+45,6
@@
* simultaneously.
*/
static pcre *re_file_elf;
* simultaneously.
*/
static pcre *re_file_elf;
-static pcre *re_file_win64;
static pcre *re_elf_ppc64;
static pcre *re_fedora;
static pcre *re_rhel_old;
static pcre *re_elf_ppc64;
static pcre *re_fedora;
static pcre *re_rhel_old;
@@
-95,7
+93,6
@@
static void
free_regexps (void)
{
pcre_free (re_file_elf);
free_regexps (void)
{
pcre_free (re_file_elf);
- pcre_free (re_file_win64);
pcre_free (re_elf_ppc64);
pcre_free (re_fedora);
pcre_free (re_rhel_old);
pcre_free (re_elf_ppc64);
pcre_free (re_fedora);
pcre_free (re_rhel_old);
@@
-858,7
+855,7
@@
check_linux_root (guestfs_h *g, struct inspect_fs *fs)
* are mounted.
* XXX What if !feature_available (g, "augeas")?
*/
* are mounted.
* XXX What if !feature_available (g, "augeas")?
*/
- if (guestfs_aug_init (g, "/",
AUG_NO_LOAD|AUG_SAVE_NOOP
) == -1)
+ if (guestfs_aug_init (g, "/",
16|32
) == -1)
return -1;
/* Tell Augeas to only load /etc/fstab (thanks Raphaël Pinson). */
return -1;
/* Tell Augeas to only load /etc/fstab (thanks Raphaël Pinson). */