public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Lon Hohberger <lon@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: rgmanager: master - rgmanager: Fix clusvcadm.c build warnings Date: Mon, 22 Jun 2009 16:55:00 -0000 [thread overview] Message-ID: <20090622165413.02B9A12025B@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/rgmanager.git?p=rgmanager.git;a=commitdiff;h=40d31de5016a33863bdaa08da19da22ba899595f Commit: 40d31de5016a33863bdaa08da19da22ba899595f Parent: 7fe5ef4fa2c2439da7d843c0bc5eb70c668374ee Author: Lon Hohberger <lhh@redhat.com> AuthorDate: Mon Jun 15 17:29:52 2009 -0400 Committer: Lon Hohberger <lhh@redhat.com> CommitterDate: Mon Jun 22 12:51:29 2009 -0400 rgmanager: Fix clusvcadm.c build warnings Signed-off-by: Lon Hohberger <lhh@redhat.com> --- rgmanager/src/daemons/groups.c | 1 + rgmanager/src/utils/clusvcadm.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/rgmanager/src/daemons/groups.c b/rgmanager/src/daemons/groups.c index 4ed4d5d..4e901a6 100644 --- a/rgmanager/src/daemons/groups.c +++ b/rgmanager/src/daemons/groups.c @@ -13,6 +13,7 @@ #include <assert.h> #include <event.h> #include <sets.h> +#include <fo_domain.h> /* Use address field in this because we never use it internally, and there is no extra space in the cman_node_t type. diff --git a/rgmanager/src/utils/clusvcadm.c b/rgmanager/src/utils/clusvcadm.c index bfd9d51..8fe7599 100644 --- a/rgmanager/src/utils/clusvcadm.c +++ b/rgmanager/src/utils/clusvcadm.c @@ -20,7 +20,7 @@ #endif -void +static void build_message(SmMessageSt *msgp, int action, char *svcName, int target, int arg1, int arg2) { @@ -39,7 +39,7 @@ build_message(SmMessageSt *msgp, int action, char *svcName, int target, } -int +static int do_lock_req(int req) { cman_handle_t ch; @@ -90,7 +90,7 @@ out: } -int +static int do_lock(void) { if (do_lock_req(RG_LOCK) != RG_SUCCESS) { @@ -102,7 +102,7 @@ do_lock(void) } -int +static int do_unlock(void) { if (do_lock_req(RG_UNLOCK) != RG_SUCCESS) { @@ -114,7 +114,7 @@ do_unlock(void) } -int +static int do_query_lock(void) { switch(do_lock_req(RG_QUERY_LOCK)) { @@ -132,7 +132,7 @@ do_query_lock(void) } -void +static void usage(char *name) { printf("usage: %s [command]\n\n", name); @@ -170,7 +170,7 @@ printf(" -u Unlock resource group managers.\n" } -int +static int find_closest_node(cluster_member_list_t *cml, char *name, size_t maxlen) { int x, c = 0, cl = 0, nc = 0, ncl = 0, cur = 0; @@ -224,7 +224,7 @@ main(int argc, char **argv) int fod = 0; int node_specified = 0; int me, svctarget = 0; - char *actionstr = NULL; + const char *actionstr = NULL; cluster_member_list_t *membership; if (geteuid() != (uid_t) 0) {
reply other threads:[~2009-06-22 16:55 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=20090622165413.02B9A12025B@lists.fedorahosted.org \ --to=lon@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).