X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fswap.c;h=99fb5639d83aa3e9bb41c074bf64118f3c3b9213;hp=907781449da95a9b23053279fe0cbef22a3074b0;hb=995674a44aa00b3c68d47d367a8e92b610ffc700;hpb=9ff99418361cd1b56b00e4ffef52444021e60c72 diff --git a/daemon/swap.c b/daemon/swap.c index 9077814..99fb563 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -28,6 +28,8 @@ #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);