1
0
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:
Zdenek Kabelac 2014-06-10 10:46:04 +02:00
parent 2f260c9909
commit 5e52a7788f
2 changed files with 8 additions and 14 deletions

View File

@ -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
}

View File

@ -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