This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: STABLE3 - config: fix build warnings introduced by corosyncchanges


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]