diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-06-09 10:10:50 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-06-09 10:53:52 +0100 |
commit | f5096dd546ac43c7288b3ab7aec1562f070f78f6 (patch) | |
tree | 63241d95690f0cd4ea3d54472a9e29d578d743be /daemon/swap.c | |
parent | 29453a58d818df24c238d0a08a68886ebe4029dd (diff) | |
download | libguestfs-f5096dd546ac43c7288b3ab7aec1562f070f78f6.tar.gz libguestfs-f5096dd546ac43c7288b3ab7aec1562f070f78f6.tar.xz libguestfs-f5096dd546ac43c7288b3ab7aec1562f070f78f6.zip |
daemon: Keep Coverity happy by ignoring some return values.
Diffstat (limited to 'daemon/swap.c')
-rw-r--r-- | daemon/swap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/swap.c b/daemon/swap.c index 90778144..99fb5639 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); |