git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.10.10.
[libguestfs.git]
/
daemon
/
swap.c
diff --git
a/daemon/swap.c
b/daemon/swap.c
index
5de6ba6
..
99fb563
100644
(file)
--- a/
daemon/swap.c
+++ b/
daemon/swap.c
@@
-23,11
+23,13
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
-#include "
../src/
guestfs_protocol.h"
+#include "guestfs_protocol.h"
#include "daemon.h"
#include "actions.h"
#include "optgroups.h"
#include "daemon.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);