git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: Document pipe fds.
[libguestfs.git]
/
daemon
/
swap.c
diff --git
a/daemon/swap.c
b/daemon/swap.c
index
9077814
..
99fb563
100644
(file)
--- a/
daemon/swap.c
+++ b/
daemon/swap.c
@@
-28,6
+28,8
@@
#include "actions.h"
#include "optgroups.h"
#include "actions.h"
#include "optgroups.h"
+#include "ignore-value.h"
+
/* Confirmed this is true for Linux swap partitions from the Linux sources. */
#define SWAP_LABEL_MAX 16
/* Confirmed this is true for Linux swap partitions from the Linux sources. */
#define SWAP_LABEL_MAX 16
@@
-42,7
+44,7
@@
optgroup_linuxfsuuid_available (void)
int av;
/* Ignore return code - mkswap --help *will* fail. */
int av;
/* Ignore return code - mkswap --help *will* fail. */
-
command (NULL, &err, "mkswap", "--help", NULL
);
+
ignore_value (command (NULL, &err, "mkswap", "--help", NULL)
);
av = strstr (err, "-U") != NULL;
free (err);
av = strstr (err, "-U") != NULL;
free (err);