1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-06-21 07:16:54 +03:00

mirror: move declaration to define

For compilation without cmirrord hide unused vars.
(in-release update)
This commit is contained in:
Zdenek Kabelac 2014-02-25 09:35:26 +01:00
parent 962af71b76
commit 502213e06c

View File

@ -465,8 +465,6 @@ static int _mirrored_target_present(struct cmd_context *cmd,
uint32_t maj, min, patchlevel;
unsigned maj2, min2, patchlevel2;
char vsn[80];
struct utsname uts;
unsigned kmaj, kmin, krel;
if (!_mirrored_checked) {
_mirrored_checked = 1;
@ -501,6 +499,8 @@ static int _mirrored_target_present(struct cmd_context *cmd,
* contact.
*/
if (dm_daemon_is_running(CMIRRORD_PIDFILE)) {
struct utsname uts;
unsigned kmaj, kmin, krel;
/*
* The dm-log-userspace module was added to the
* 2.6.31 kernel.