mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: drop inline keyword
Inline would need function body in header file.
This commit is contained in:
parent
2f260c9909
commit
5e52a7788f
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user