summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-06-05 14:41:37 -0500
committerDavid Teigland <teigland@redhat.com>2015-06-08 11:50:41 -0500
commit80692943865e8781d52dddb16bacf1ccec82cd5a (patch)
tree6aee48b4bdc0bd8021f244d4d2204576d73025d7
parent60dda625873118cd81de454003d6f72193776ba8 (diff)
downloadlvm2-80692943865e8781d52dddb16bacf1ccec82cd5a.tar.gz
fix some new build warnings
-rw-r--r--daemons/lvmlockd/lvmlockctl.c2
-rw-r--r--daemons/lvmlockd/lvmlockd-core.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemons/lvmlockd/lvmlockctl.c b/daemons/lvmlockd/lvmlockctl.c
index f9d6cf98b..17b122f9d 100644
--- a/daemons/lvmlockd/lvmlockctl.c
+++ b/daemons/lvmlockd/lvmlockctl.c
@@ -386,7 +386,7 @@ static int do_dump(const char *req_name)
{
daemon_reply reply;
int result;
- int fd, rv;
+ int fd, rv = 0;
fd = setup_dump_socket();
if (fd < 0) {
diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c
index be4fc45cc..cf3023ca4 100644
--- a/daemons/lvmlockd/lvmlockd-core.c
+++ b/daemons/lvmlockd/lvmlockd-core.c
@@ -2958,7 +2958,7 @@ static int work_init_lv(struct action *act)
char ls_name[MAX_NAME+1];
char vg_args[MAX_ARGS];
char lv_args[MAX_ARGS];
- uint64_t free_offset;
+ uint64_t free_offset = 0;
int lm_type = 0;
int rv = 0;