X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fswap.c;h=99fb5639d83aa3e9bb41c074bf64118f3c3b9213;hb=d28d76b4fba3afe18757ab848346e8123a8bcae1;hp=907781449da95a9b23053279fe0cbef22a3074b0;hpb=9ff99418361cd1b56b00e4ffef52444021e60c72;p=libguestfs.git 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);