summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-03-31 23:21:20 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-04 20:36:09 -0400
commita75e27eb7006bc67345a3f28bf28a111a7540830 (patch)
tree47037117db6167a8353b3c0cd8186a723e1e93bb /src/shared
parent3bcaf458f6d823f81399dfbc6fcd452d54c1cd32 (diff)
shared/dissect-image: fix warning about unused function when !HAVE_BLKID
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dissect-image.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index 1c9d21566f..36c94ac71b 100644
--- a/src/shared/dissect-image.c
+++ b/src/shared/dissect-image.c
@@ -42,8 +42,8 @@
#include "udev-util.h"
#include "xattr-util.h"
-static int probe_filesystem(const char *node, char **ret_fstype) {
#ifdef HAVE_BLKID
+static int probe_filesystem(const char *node, char **ret_fstype) {
_cleanup_blkid_free_probe_ blkid_probe b = NULL;
const char *fstype;
int r;
@@ -80,10 +80,8 @@ static int probe_filesystem(const char *node, char **ret_fstype) {
not_found:
*ret_fstype = NULL;
return 0;
-#else
- return -EOPNOTSUPP;
-#endif
}
+#endif
int dissect_image(int fd, const void *root_hash, size_t root_hash_size, DissectImageFlags flags, DissectedImage **ret) {