cluster: STABLE3 - rgmanager: Fix build warnings

Lon Hohberger lon at fedoraproject.org
Tue May 4 20:32:01 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2c9f4e1360ee8ce4190e22f20c8b15cc7e33470d
Commit:        2c9f4e1360ee8ce4190e22f20c8b15cc7e33470d
Parent:        d4761edcda4a87f89f136224ce4aafc0194db84b
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Tue May 4 16:31:05 2010 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Tue May 4 16:31:05 2010 -0400

rgmanager: Fix build warnings

Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
 rgmanager/include/groups.h      |    1 +
 rgmanager/src/daemons/restree.c |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rgmanager/include/groups.h b/rgmanager/include/groups.h
index 4f23540..f776a31 100644
--- a/rgmanager/include/groups.h
+++ b/rgmanager/include/groups.h
@@ -20,6 +20,7 @@ int get_service_property(const char *rg_name, const char *prop,
 
 int add_restart(const char *rg_name);
 int check_restart(const char *rg_name);
+int clear_restart(const char *rg_name);
 void kill_resource_groups(void);
 
 /* do this op on all resource groups.  The handler for the request 
diff --git a/rgmanager/src/daemons/restree.c b/rgmanager/src/daemons/restree.c
index ebeb79e..56f54c7 100644
--- a/rgmanager/src/daemons/restree.c
+++ b/rgmanager/src/daemons/restree.c
@@ -1210,9 +1210,8 @@ clear_checks(resource_node_t *node)
 {
 	time_t now;
 	int x = 0;
-	resource_t *res = node->rn_resource;
 
-	now = get_time("start", 0, node);
+	now = get_time((char *)"start", 0, node);
 
 	for (; node->rn_actions[x].ra_name; x++) {
 


More information about the cluster-commits mailing list