diff options
author | Karel Zak <kzak@redhat.com> | 2012-06-21 10:40:43 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2012-06-21 10:40:43 +0200 |
commit | defa0710b63096f96b5616090c262d30b01bc60c (patch) | |
tree | 78e997be96600df083f7bca8c704c0352605b190 /partx | |
parent | 1aae31c0488299023346bd2b4f8a8046a8546a8c (diff) | |
download | util-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.c | 3 |
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) |