From 5e52a7788f71aa0b1235193902163f7e77f817c1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 10 Jun 2014 10:46:04 +0200 Subject: [PATCH] cleanup: drop inline keyword Inline would need function body in header file. --- lib/misc/lvm-wrappers.c | 18 ++++++------------ lib/misc/lvm-wrappers.h | 4 ++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/lib/misc/lvm-wrappers.c b/lib/misc/lvm-wrappers.c index 4e3ff33a0..ed84bec62 100644 --- a/lib/misc/lvm-wrappers.c +++ b/lib/misc/lvm-wrappers.c @@ -140,26 +140,20 @@ unsigned lvm_even_rand(unsigned *seed, unsigned max) return ret; } +int clvmd_is_running(void) +{ #ifdef CLVMD_PIDFILE -inline int clvmd_is_running(void) -{ return dm_daemon_is_running(CLVMD_PIDFILE); -} #else -inline int clvmd_is_running(void) -{ return 0; -} #endif +} +int cmirrord_is_running(void) +{ #ifdef CMIRRORD_PIDFILE -inline int cmirrord_is_running(void) -{ return dm_daemon_is_running(CMIRRORD_PIDFILE); -} #else -inline int cmirrord_is_running(void) -{ return 0; -} #endif +} diff --git a/lib/misc/lvm-wrappers.h b/lib/misc/lvm-wrappers.h index fbf28b85d..d147a9954 100644 --- a/lib/misc/lvm-wrappers.h +++ b/lib/misc/lvm-wrappers.h @@ -37,8 +37,8 @@ int read_urandom(void *buf, size_t len); */ unsigned lvm_even_rand(unsigned *seed, unsigned max); -inline int clvmd_is_running(void); -inline int cmirrord_is_running(void); +int clvmd_is_running(void); +int cmirrord_is_running(void); #endif