[lvm-devel] master - cleanup: _move_pv is static

Peter Rajnoha prajnoha at fedoraproject.org
Mon Apr 28 10:12:53 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5b28cbd7c2cd8413c189fff1286a579174ca082a
Commit:        5b28cbd7c2cd8413c189fff1286a579174ca082a
Parent:        4360fdf89c7f38c5de0d3e6d612f67ee915cba15
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Mon Apr 28 12:11:44 2014 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Mon Apr 28 12:11:44 2014 +0200

cleanup: _move_pv is static

metadata/metadata.c:363:5: warning: no previous prototype for '_move_pv' [-Wmissing-prototypes]
---
 lib/metadata/metadata.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index edc55ef..e2abba7 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -360,8 +360,8 @@ out:
 	return r;
 }
 
-int _move_pv(struct volume_group *vg_from, struct volume_group *vg_to,
-	     const char *pv_name, int enforce_pv_from_source)
+static int _move_pv(struct volume_group *vg_from, struct volume_group *vg_to,
+		    const char *pv_name, int enforce_pv_from_source)
 {
 	struct physical_volume *pv;
 	struct pv_list *pvl;




More information about the lvm-devel mailing list