X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fswap.c;h=99fb5639d83aa3e9bb41c074bf64118f3c3b9213;hp=5de6ba61c718927779c0a8f769d53191b58d5c95;hb=7739d7f471f9575828bd32489695d92dde005a9c;hpb=52f9cd4882135910ea06e1e50ac6441d455c9ab1 diff --git a/daemon/swap.c b/daemon/swap.c index 5de6ba6..99fb563 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -23,11 +23,13 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.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 @@ -42,7 +44,7 @@ optgroup_linuxfsuuid_available (void) 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);