public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: master - config: fix some warnings in ldap tools
@ 2009-05-05 6:56 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-05-05 6:56 UTC (permalink / raw)
To: cluster-cvs-relay
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-05 6:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 6:56 cluster: master - config: fix some warnings in ldap tools Fabio M. Di Nitto
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).