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 some warnings in ldap tools
Date: Tue, 05 May 2009 06:56:00 -0000	[thread overview]
Message-ID: <20090505065528.87ED312026F@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=12d624334a1aeece95976ca984564cdfcee20c77
Commit:        12d624334a1aeece95976ca984564cdfcee20c77
Parent:        8b5952eb6728d7a7a71c9206f792ff4d504b1ccb
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:54:36 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 115bcaf..dfc4cb9 100644
--- a/config/tools/ldap/confdb2ldif.c
+++ b/config/tools/ldap/confdb2ldif.c
@@ -15,8 +15,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) {


                 reply	other threads:[~2009-05-05  6:56 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=20090505065528.87ED312026F@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).