public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: dlm: master - dlm_tool: make functions static Date: Tue, 23 Jun 2009 08:46:00 -0000 [thread overview] Message-ID: <20090623082056.DBBFD12037E@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=cfedf3350eba73920f6b5f96288f2e349a4f8632 Commit: cfedf3350eba73920f6b5f96288f2e349a4f8632 Parent: 1dd78419c2736f3a53cebc0f747173aac7faa99d Author: Fabio M. Di Nitto <fdinitto@redhat.com> AuthorDate: Wed May 6 06:59:51 2009 +0200 Committer: Fabio M. Di Nitto <fdinitto@redhat.com> CommitterDate: Tue Jun 23 09:42:52 2009 +0200 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 51a4432..89ab52a 100644 --- a/dlm/tool/main.c +++ b/dlm/tool/main.c @@ -111,7 +111,7 @@ struct summary { unsigned int expect_replies; }; -const char *mode_str(int mode) +static const char *mode_str(int mode) { switch (mode) { case -1: @@ -132,7 +132,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: @@ -395,7 +395,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; @@ -425,7 +425,7 @@ void do_join(char *name) printf("done\n"); } -void do_leave(char *name) +static void do_leave(char *name) { dlm_lshandle_t *dh; @@ -443,7 +443,7 @@ void do_leave(char *name) printf("done\n"); } -char *pr_master(int nodeid) +static char *pr_master(int nodeid) { static char buf[64]; @@ -459,7 +459,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]; @@ -478,7 +478,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]; @@ -534,7 +534,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]; @@ -570,7 +570,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); @@ -580,7 +580,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]; @@ -598,7 +598,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]; @@ -615,7 +615,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]; @@ -629,7 +629,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]; @@ -643,7 +643,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]; @@ -781,7 +781,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]; @@ -837,7 +837,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; @@ -901,7 +901,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; @@ -919,7 +919,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];
reply other threads:[~2009-06-23 8:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090623082056.DBBFD12037E@lists.fedorahosted.org \ --to=fabbione@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).