public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* rgmanager: master - rgmanager: Fix clusvcadm.c build warnings
@ 2009-06-22 16:55 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-06-22 16:55 UTC (permalink / raw)
  To: cluster-cvs-relay

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) {


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

only message in thread, other threads:[~2009-06-22 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-22 16:55 rgmanager: master - rgmanager: Fix clusvcadm.c build warnings Lon Hohberger

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).