summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 0f8f91dd..32e3375d 100644
--- a/utils.c
+++ b/utils.c
@@ -959,7 +959,7 @@ int is_block_device(const char *path)
if (stat(path, &statbuf) < 0)
return -errno;
- return S_ISBLK(statbuf.st_mode);
+ return !!S_ISBLK(statbuf.st_mode);
}
/*