summaryrefslogtreecommitdiff
path: root/pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-19 18:45:11 -0700
committerMichael Forney <mforney@mforney.org>2019-06-19 22:27:00 -0700
commit2d7a92fd3469238ae4f12b591f79239c4e0e892d (patch)
tree245369a0a9395ac95e7ae92c7edcc91a4aabb996 /pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch
parent10b83649e920920e26c3b4e6e2d319a198156402 (diff)
util-linux: Fix a few portability issues
Diffstat (limited to 'pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch')
-rw-r--r--pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch b/pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch
new file mode 100644
index 00000000..2bebbb03
--- /dev/null
+++ b/pkg/util-linux/patch/0006-Revert-lib-loopdev.c-Inline-loopcxt_has_device.patch
@@ -0,0 +1,28 @@
+From 91696aa317a78a594ca8ae6e6a810fe778490e6a Mon Sep 17 00:00:00 2001
+From: Karel Zak <kzak@redhat.com>
+Date: Tue, 18 Jun 2019 22:05:16 +0200
+Subject: [PATCH] Revert "lib/loopdev.c: Inline loopcxt_has_device"
+
+... no caller in that file, this change has no effect.
+
+This reverts commit 3bb960c7b5f1428f1bff885b2667787e8af5001b.
+---
+ lib/loopdev.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/loopdev.c b/lib/loopdev.c
+index ede1b5cdc..99a093926 100644
+--- a/lib/loopdev.c
++++ b/lib/loopdev.c
+@@ -127,7 +127,7 @@ int loopcxt_set_device(struct loopdev_cxt *lc, const char *device)
+ return 0;
+ }
+
+-inline int loopcxt_has_device(struct loopdev_cxt *lc)
++int loopcxt_has_device(struct loopdev_cxt *lc)
+ {
+ return lc && *lc->device;
+ }
+--
+2.20.1
+