This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: master - configldap: add some consts
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Tue, 28 Apr 2009 04:47:09 +0000 (UTC)
- Subject: cluster: master - configldap: add some consts
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=262c8382da240324c0f95d32a81e5efe03f70393
Commit: 262c8382da240324c0f95d32a81e5efe03f70393
Parent: 77b0fcc2ee9b8de43d067ba312dea23967b57a98
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Tue Apr 28 06:44:27 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Apr 28 06:47:00 2009 +0200
configldap: add some consts
fix some build warnings around
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
config/plugins/ldap/configldap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/config/plugins/ldap/configldap.c b/config/plugins/ldap/configldap.c
index e2101f4..c739e9a 100644
--- a/config/plugins/ldap/configldap.c
+++ b/config/plugins/ldap/configldap.c
@@ -22,8 +22,8 @@
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;
-static char *ldap_basedn = DEFAULT_LDAP_BASEDN;
+static const char *ldap_url = DEFAULT_LDAP_URL;
+static const char *ldap_basedn = DEFAULT_LDAP_BASEDN;
/*
* Exports the interface for the service
@@ -99,7 +99,7 @@ static void convert_dn_underscores(LDAPDN dn)
* Return the parent object of a DN.
* Actually, this returns the LAST parent with that name. which should (!) be correct.
*/
-static hdb_handle_t find_parent(struct objdb_iface_ver0 *objdb, LDAPDN dn, int startdn, char *parent)
+static hdb_handle_t find_parent(struct objdb_iface_ver0 *objdb, LDAPDN dn, int startdn, const char *parent)
{
int i=startdn;
int gotstart=0;
@@ -139,7 +139,7 @@ static hdb_handle_t find_parent(struct objdb_iface_ver0 *objdb, LDAPDN dn, int s
static int read_config_for(LDAP *ld, struct objdb_iface_ver0 *objdb, hdb_handle_t parent,
- char *object, char *sub_dn, int always_create)
+ const char *object, const char *sub_dn, int always_create)
{
char search_dn[4096];
int rc;