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: master - config: fix some warnings in ldap tools


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=1e648a83f6f5aa0c146ce25e8fd5c47c511077e5
Commit:        1e648a83f6f5aa0c146ce25e8fd5c47c511077e5
Parent:        e5ebfeb2433bb3b1c0dea6f02f36c04a5fe88c30
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue May 5 08:54:36 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue May 5 08:56:00 2009 +0200

config: fix some warnings in ldap tools

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 config/tools/ldap/confdb2ldif.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config/tools/ldap/confdb2ldif.c b/config/tools/ldap/confdb2ldif.c
index 39e7f0e..ee5cde1 100644
--- a/config/tools/ldap/confdb2ldif.c
+++ b/config/tools/ldap/confdb2ldif.c
@@ -16,8 +16,8 @@ confdb_callbacks_t callbacks = {
 /* This structure maps object parent names to object classes */
 struct objectclasses
 {
-	char *name;
-	char *class;
+	const char *name;
+	const char *class;
 } objectclasses[] =
 {
 	{ "cluster", "rhcsCluster" },
@@ -55,7 +55,7 @@ static char *ldap_attr_name(char *attrname)
 
 
 /* Recursively dump the object tree */
-static void print_config_tree(confdb_handle_t handle, hdb_handle_t parent_object_handle, char *dn, char *fulldn)
+static void print_config_tree(confdb_handle_t handle, hdb_handle_t parent_object_handle, const char *dn, char *fulldn)
 {
 	hdb_handle_t object_handle;
 	char object_name[1024];
@@ -146,7 +146,7 @@ int main(int argc, char *argv[])
 	confdb_handle_t handle;
 	int result;
 	hdb_handle_t cluster_handle;
-	char *clusterroot = "cluster";
+	const char *clusterroot = "cluster";
 	char basedn[1024];
 
 	if (argc == 1) {


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