public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: master - config: make confdb2ldif use hdb_handle_t
@ 2009-03-04 14:56 Christine Caulfield
0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-03-04 14:56 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2356189b702489ee9eba4278a75bfc332da114e7
Commit: 2356189b702489ee9eba4278a75bfc332da114e7
Parent: d890606cb8418a068a22f620358e4a05026deeb8
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Wed Mar 4 14:55:13 2009 +0000
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Wed Mar 4 14:55:13 2009 +0000
config: make confdb2ldif use hdb_handle_t
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
config/tools/ldap/confdb2ldif.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/config/tools/ldap/confdb2ldif.c b/config/tools/ldap/confdb2ldif.c
index f4bd7a9..4f9dfc8 100644
--- a/config/tools/ldap/confdb2ldif.c
+++ b/config/tools/ldap/confdb2ldif.c
@@ -55,9 +55,9 @@ static char *ldap_attr_name(char *attrname)
/* Recursively dump the object tree */
-static void print_config_tree(confdb_handle_t handle, unsigned int parent_object_handle, char *dn, char *fulldn)
+static void print_config_tree(confdb_handle_t handle, hdb_handle_t parent_object_handle, char *dn, char *fulldn)
{
- unsigned int object_handle;
+ hdb_handle_t object_handle;
char object_name[1024];
int object_name_len;
char key_name[1024];
@@ -74,7 +74,7 @@ static void print_config_tree(confdb_handle_t handle, unsigned int parent_object
/* Show the keys */
res = confdb_key_iter_start(handle, parent_object_handle);
if (res != CS_OK) {
- printf( "error resetting key iterator for object %d: %d\n", parent_object_handle, res);
+ printf( "error resetting key iterator for object %llu: %d\n", parent_object_handle, res);
return;
}
@@ -105,16 +105,16 @@ static void print_config_tree(confdb_handle_t handle, unsigned int parent_object
/* Show sub-objects */
res = confdb_object_iter_start(handle, parent_object_handle);
if (res != CS_OK) {
- printf( "error resetting object iterator for object %d: %d\n", parent_object_handle, res);
+ printf( "error resetting object iterator for object %llu: %d\n", parent_object_handle, res);
return;
}
while ( (res = confdb_object_iter(handle, parent_object_handle, &object_handle, object_name, &object_name_len)) == CS_OK) {
- unsigned int parent;
+ hdb_handle_t parent;
res = confdb_object_parent_get(handle, object_handle, &parent);
if (res != CS_OK) {
- printf( "error getting parent for object %d: %d\n", object_handle, res);
+ printf( "error getting parent for object %llu: %d\n", object_handle, res);
return;
}
@@ -145,7 +145,7 @@ int main(int argc, char *argv[])
{
confdb_handle_t handle;
int result;
- unsigned int cluster_handle;
+ hdb_handle_t cluster_handle;
char *clusterroot = "cluster";
char basedn[1024];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-04 14:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-04 14:56 cluster: master - config: make confdb2ldif use hdb_handle_t Christine Caulfield
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).