cluster: STABLE3 - gfs_control: make functions static

David Teigland teigland@fedoraproject.org
Mon May 11 15:13:00 GMT 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=adcf6c0d8db15e0179f254a67cdc03a8b45f8174
Commit:        adcf6c0d8db15e0179f254a67cdc03a8b45f8174
Parent:        c1624bb4b6815932ba3c378cd8a808fa088ad2b0
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed May 6 09:08:50 2009 +0200
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Mon May 11 10:05:06 2009 -0500

gfs_control: make functions static

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 group/gfs_control/main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/group/gfs_control/main.c b/group/gfs_control/main.c
index 7db14e7..d12b47a 100644
--- a/group/gfs_control/main.c
+++ b/group/gfs_control/main.c
@@ -155,7 +155,7 @@ static int do_write(int fd, void *buf, size_t count)
 	return 0;
 }
 
-void do_leave(char *table)
+static void do_leave(char *table)
 {
 	struct gfsc_mount_args ma;
 	int rv;
@@ -169,7 +169,7 @@ void do_leave(char *table)
 		fprintf(stderr, "gfs_controld leave error %d\n", rv);
 }
 
-char *mg_flags_str(uint32_t flags)
+static char *mg_flags_str(uint32_t flags)
 {
 	static char str[128];
 	int i = 0;
@@ -214,7 +214,7 @@ char *mg_flags_str(uint32_t flags)
 	return str;
 }
 
-char *node_mount_str(uint32_t flags)
+static char *node_mount_str(uint32_t flags)
 {
 	static char str[128];
 	int i = 0;
@@ -246,7 +246,7 @@ char *node_mount_str(uint32_t flags)
 	return str;
 }
 
-int member_int(struct gfsc_node *n)
+static int member_int(struct gfsc_node *n)
 {
 	if (n->flags & GFSC_NF_DISALLOWED)
 		return -1;
@@ -255,7 +255,7 @@ int member_int(struct gfsc_node *n)
 	return 0;
 }
 
-const char *condition_str(int cond)
+static const char *condition_str(int cond)
 {
 	switch (cond) {
 	case 0:



More information about the Cluster-cvs mailing list