public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - config: fix build warnings introduced by corosync changes
@ 2009-03-12  9:12 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-03-12  9:12 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ba4b6698869fe00e9b708bd76191d73ad2694a2f
Commit:        ba4b6698869fe00e9b708bd76191d73ad2694a2f
Parent:        05f20f21c02e460b86d8371bb30619630052d1c2
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Thu Mar 12 10:11:30 2009 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Thu Mar 12 10:11:30 2009 +0100

config: fix build warnings introduced by corosync changes

char -> const char..

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 config/plugins/ldap/configldap.c |    4 ++--
 config/plugins/xml/config.c      |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/config/plugins/ldap/configldap.c b/config/plugins/ldap/configldap.c
index aab8934..e04c8fc 100644
--- a/config/plugins/ldap/configldap.c
+++ b/config/plugins/ldap/configldap.c
@@ -19,7 +19,7 @@
 #define DEFAULT_LDAP_URL "ldap:///"
 #define DEFAULT_LDAP_BASEDN "dc=chrissie,dc=net"
 
-static int ldap_readconfig(struct objdb_iface_ver0 *objdb, char **error_string);
+static int ldap_readconfig(struct objdb_iface_ver0 *objdb, const char **error_string);
 static int init_config(struct objdb_iface_ver0 *objdb);
 static char error_reason[1024];
 static char *ldap_url = DEFAULT_LDAP_URL;
@@ -59,7 +59,7 @@ __attribute__ ((constructor)) static void ldap_comp_register(void) {
 	lcr_component_register(&ldap_comp_ver0);
 };
 
-static int ldap_readconfig(struct objdb_iface_ver0 *objdb, char **error_string)
+static int ldap_readconfig(struct objdb_iface_ver0 *objdb, const char **error_string)
 {
 	int ret;
 
diff --git a/config/plugins/xml/config.c b/config/plugins/xml/config.c
index 2fd346f..7853109 100644
--- a/config/plugins/xml/config.c
+++ b/config/plugins/xml/config.c
@@ -9,11 +9,11 @@
 
 #include "logging.h"
 
-static int xml_readconfig(struct objdb_iface_ver0 *objdb, char **error_string);
+static int xml_readconfig(struct objdb_iface_ver0 *objdb, const char **error_string);
 static int xml_reloadconfig(struct objdb_iface_ver0 *objdb, int flush,
-			    char **error_string);
+			    const char **error_string);
 static int init_config(struct objdb_iface_ver0 *objdb, char *configfile,
-		       char *error_string);
+		       const char *error_string);
 static char error_reason[1024];
 
 #define DEFAULT_CONFIG DEFAULT_CONFIG_DIR "/" DEFAULT_CONFIG_FILE
@@ -87,12 +87,12 @@ static void xml2objdb(xmlNodePtr tmpnode, struct objdb_iface_ver0 *objdb,
 }
 
 static int xml_reloadconfig(struct objdb_iface_ver0 *objdb, int flush,
-			    char **error_string)
+			    const char **error_string)
 {
 	return xml_readconfig(objdb, error_string);
 }
 
-static int xml_readconfig(struct objdb_iface_ver0 *objdb, char **error_string)
+static int xml_readconfig(struct objdb_iface_ver0 *objdb, const char **error_string)
 {
 	int ret = 0;
 	char *configfile = DEFAULT_CONFIG;
@@ -117,7 +117,7 @@ static int xml_readconfig(struct objdb_iface_ver0 *objdb, char **error_string)
 }
 
 static int init_config(struct objdb_iface_ver0 *objdb, char *configfile,
-		       char *error_string)
+		       const char *error_string)
 {
 	int err = 0;
 	xmlDocPtr doc = NULL;


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

only message in thread, other threads:[~2009-03-12  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12  9:12 cluster: STABLE3 - config: fix build warnings introduced by corosync changes Fabio M. Di Nitto

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