public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - dlm_tool: make functions static
@ 2009-05-11 15:13 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-05-11 15:13 UTC (permalink / raw)
  To: cluster-cvs-relay

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

dlm_tool: make functions static

address several warnings:
cluster-stable3/dlm/tool/main.c: warning: no previous prototype for..

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 dlm/tool/main.c |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/dlm/tool/main.c b/dlm/tool/main.c
index 5dff9a4..732ff28 100644
--- a/dlm/tool/main.c
+++ b/dlm/tool/main.c
@@ -109,7 +109,7 @@ struct summary {
 	unsigned int expect_replies;
 };
 
-const char *mode_str(int mode)
+static const char *mode_str(int mode)
 {
 	switch (mode) {
 	case -1:
@@ -130,7 +130,7 @@ const char *mode_str(int mode)
 	return "??";
 }
 
-const char *msg_str(int type)
+static const char *msg_str(int type)
 {
 	switch (type) {
 	case DLM_MSG_REQUEST:
@@ -393,7 +393,7 @@ static char *flag_str(uint32_t flags)
 	return join_flags;
 }
 
-void do_join(char *name)
+static void do_join(char *name)
 {
 	dlm_lshandle_t *dh;
 	uint32_t flags = 0;
@@ -423,7 +423,7 @@ void do_join(char *name)
 	printf("done\n");
 }
 
-void do_leave(char *name)
+static void do_leave(char *name)
 {
 	dlm_lshandle_t *dh;
 
@@ -441,7 +441,7 @@ void do_leave(char *name)
 	printf("done\n");
 }
 
-char *pr_master(int nodeid)
+static char *pr_master(int nodeid)
 {
 	static char buf[64];
 
@@ -457,7 +457,7 @@ char *pr_master(int nodeid)
 	return buf;
 }
 
-char *pr_extra(uint32_t flags, int root_list, int recover_list,
+static char *pr_extra(uint32_t flags, int root_list, int recover_list,
 	       int recover_locks_count, char *first_lkid)
 {
 	static char buf[128];
@@ -476,7 +476,7 @@ char *pr_extra(uint32_t flags, int root_list, int recover_list,
 	return buf;
 }
 
-void print_rsb(char *line, struct rinfo *ri)
+static void print_rsb(char *line, struct rinfo *ri)
 {
 	char type[4], namefmt[4], *p;
 	char addr[64];
@@ -532,7 +532,7 @@ void print_rsb(char *line, struct rinfo *ri)
 	fprintf(stderr, "print_rsb error rv %d line \"%s\"\n", rv, line);
 }
 
-void print_lvb(char *line)
+static void print_lvb(char *line)
 {
 	char lvb[1024];
 	char type[4];
@@ -568,7 +568,7 @@ struct lkb {
 	int nodeid, ownpid, status, grmode, rqmode, highbast, rsb_lookup, wait_type;
 };
 
-const char *pr_grmode(struct lkb *lkb)
+static const char *pr_grmode(struct lkb *lkb)
 {
 	if (lkb->status == DLM_LKSTS_GRANTED || lkb->status == DLM_LKSTS_CONVERT)
 		return mode_str(lkb->grmode);
@@ -578,7 +578,7 @@ const char *pr_grmode(struct lkb *lkb)
 		return "XX";
 }
 
-const char *pr_rqmode(struct lkb *lkb)
+static const char *pr_rqmode(struct lkb *lkb)
 {
 	static char buf[5];
 
@@ -596,7 +596,7 @@ const char *pr_rqmode(struct lkb *lkb)
 	}
 }
 
-const char *pr_remote(struct lkb *lkb, struct rinfo *ri)
+static const char *pr_remote(struct lkb *lkb, struct rinfo *ri)
 {
 	static char buf[64];
 
@@ -613,7 +613,7 @@ const char *pr_remote(struct lkb *lkb, struct rinfo *ri)
 	}
 }
 
-const char *pr_wait(struct lkb *lkb)
+static const char *pr_wait(struct lkb *lkb)
 {
 	static char buf[16];
 
@@ -627,7 +627,7 @@ const char *pr_wait(struct lkb *lkb)
 	}
 }
 
-char *pr_verbose(struct lkb *lkb)
+static char *pr_verbose(struct lkb *lkb)
 {
 	static char buf[128];
 
@@ -641,7 +641,7 @@ char *pr_verbose(struct lkb *lkb)
 	return buf;
 }
 
-void print_lkb(char *line, struct rinfo *ri)
+static void print_lkb(char *line, struct rinfo *ri)
 {
 	struct lkb lkb;
 	char type[4];
@@ -779,7 +779,7 @@ static void print_summary(struct summary *s)
 
 #define LOCK_LINE_MAX 1024
 
-void do_waiters(char *name, struct summary *sum)
+static void do_waiters(char *name, struct summary *sum)
 {
 	FILE *file;
 	char path[PATH_MAX];
@@ -835,7 +835,7 @@ void do_waiters(char *name, struct summary *sum)
 	fclose(file);
 }
 
-void do_lockdebug(char *name)
+static void do_lockdebug(char *name)
 {
 	struct summary summary;
 	struct rinfo info;
@@ -899,7 +899,7 @@ void do_lockdebug(char *name)
 	}
 }
 
-void parse_r_name(char *line, char *name)
+static void parse_r_name(char *line, char *name)
 {
 	char *p;
 	int i = 0;
@@ -917,7 +917,7 @@ void parse_r_name(char *line, char *name)
 	}
 }
 
-void do_lockdump(char *name)
+static void do_lockdump(char *name)
 {
 	FILE *file;
 	char path[PATH_MAX];


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-11 15:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-11 15:13 cluster: STABLE3 - dlm_tool: make functions static David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).