public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - config: fix build warnings introduced by corosync changes
Date: Thu, 12 Mar 2009 09:12:00 -0000	[thread overview]
Message-ID: <20090312091224.ADC9812034E@lists.fedorahosted.org> (raw)

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;


                 reply	other threads:[~2009-03-12  9:12 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=20090312091224.ADC9812034E@lists.fedorahosted.org \
    --to=fabbione@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: link
Be 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).