summaryrefslogtreecommitdiff
path: root/partx
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2012-06-21 10:40:43 +0200
committerKarel Zak <kzak@redhat.com>2012-06-21 10:40:43 +0200
commitdefa0710b63096f96b5616090c262d30b01bc60c (patch)
tree78e997be96600df083f7bca8c704c0352605b190 /partx
parent1aae31c0488299023346bd2b4f8a8046a8546a8c (diff)
downloadutil-linux-defa0710b63096f96b5616090c262d30b01bc60c.tar.gz
lib/loopdev: use warn_unused_result forimportant functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'partx')
-rw-r--r--partx/partx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/partx/partx.c b/partx/partx.c
index fd8e4400..0c3f8f98 100644
--- a/partx/partx.c
+++ b/partx/partx.c
@@ -102,7 +102,8 @@ static void assoc_loopdev(const char *fname)
{
int rc;
- loopcxt_init(&lc, 0);
+ if (loopcxt_init(&lc, 0))
+ err(EXIT_FAILURE, _("failed to initialize loopcxt"));
rc = loopcxt_find_unused(&lc);
if (rc)