From 5d747f724eb915007fa5d9bbe6539be3cd12d730 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 2 Nov 2018 15:58:47 -0500 Subject: [PATCH] lvmlockd: use standard major minor functions --- daemons/lvmlockd/lvmlockd-sanlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/lvmlockd/lvmlockd-sanlock.c b/daemons/lvmlockd/lvmlockd-sanlock.c index 9c950f315..d22d009b0 100644 --- a/daemons/lvmlockd/lvmlockd-sanlock.c +++ b/daemons/lvmlockd/lvmlockd-sanlock.c @@ -44,7 +44,7 @@ #include #include #include -#include +#include #define ONE_MB 1048576 @@ -351,7 +351,7 @@ static void _read_sysfs_size(dev_t devno, const char *name, unsigned int *val) size_t len; snprintf(path, sizeof(path), "/sys/dev/block/%d:%d/queue/%s", - (int)MAJOR(devno), (int)MINOR(devno), name); + (int)major(devno), (int)minor(devno), name); if (!(fp = fopen(path, "r"))) return;