summaryrefslogtreecommitdiff
path: root/daemons/dmeventd/dmeventd.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-03-29 20:30:05 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-03-29 20:30:05 +0000
commitaaf92617b0ad642ec99483141ad588982cf921d8 (patch)
treee0d7c2f834dfe177231178c20f2002b8cbd05d29 /daemons/dmeventd/dmeventd.c
parentf77736cab5bafc49eee76ec1643eb615b8785329 (diff)
downloadlvm2-aaf92617b0ad642ec99483141ad588982cf921d8.tar.gz
Fix -Wold-style-definition gcc warnings
Diffstat (limited to 'daemons/dmeventd/dmeventd.c')
-rw-r--r--daemons/dmeventd/dmeventd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c
index b30c20471..a64295fb4 100644
--- a/daemons/dmeventd/dmeventd.c
+++ b/daemons/dmeventd/dmeventd.c
@@ -1225,6 +1225,7 @@ static void _init_fifos(struct dm_event_fifos *fifos)
static int _open_fifos(struct dm_event_fifos *fifos)
{
int orig_errno;
+ struct stat st;
/* Create client fifo. */
(void) dm_prepare_selinux_context(fifos->client_path, S_IFIFO);
@@ -1248,8 +1249,6 @@ static int _open_fifos(struct dm_event_fifos *fifos)
(void) dm_prepare_selinux_context(NULL, 0);
- struct stat st;
-
/* Warn about wrong permissions if applicable */
if ((!stat(fifos->client_path, &st)) && (st.st_mode & 0777) != 0600)
syslog(LOG_WARNING, "Fixing wrong permissions on %s",