summaryrefslogtreecommitdiffstats
path: root/lib/loopdev.c
diff options
context:
space:
mode:
authorSami Kerola2012-07-14 23:35:41 +0200
committerKarel Zak2012-07-16 18:18:21 +0200
commit510a1a3450e5691ef71f722ddeb4b8c857f2c912 (patch)
tree8c75d69a94daa2da7a6ea6ae59847056af76cd36 /lib/loopdev.c
parentlib/pager: minor compiler warning fixes (diff)
downloadkernel-qcow2-util-linux-510a1a3450e5691ef71f722ddeb4b8c857f2c912.tar.gz
kernel-qcow2-util-linux-510a1a3450e5691ef71f722ddeb4b8c857f2c912.tar.xz
kernel-qcow2-util-linux-510a1a3450e5691ef71f722ddeb4b8c857f2c912.zip
lib/loopdev: minor bug fix: add missing semicolon
Missing semicolon made test_loop_info() to return function loopcxt_enable_debug() return value, which happen to be void. I suspect the loopcxt_enable_debug() was usually not executed, while it should be. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib/loopdev.c')
-rw-r--r--lib/loopdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c
index b644ae50c..a9f6df220 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -1450,7 +1450,7 @@ static void test_loop_info(const char *device, int flags, int debug)
uint64_t u64;
if (loopcxt_init(&lc, flags))
- return
+ return;
loopcxt_enable_debug(&lc, debug);
if (loopcxt_set_device(&lc, device))