Просмотр исходного кода

Fix testconfdb use of object handles.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1844 fd59a12c-fef9-0310-b244-a6a79926bd2f
Christine Caulfield 17 лет назад
Родитель
Сommit
927921109c
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      test/testconfdb.c

+ 3 - 3
test/testconfdb.c

@@ -54,7 +54,7 @@ confdb_callbacks_t callbacks = {
 };
 
 /* Recursively dump the object tree */
-static void print_config_tree(confdb_handle_t handle, unsigned int parent_object_handle, int depth)
+static void print_config_tree(confdb_handle_t handle, hdb_handle_t parent_object_handle, int depth)
 {
 	hdb_handle_t object_handle;
 	char object_name[1024];
@@ -69,7 +69,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;
 	}
 
@@ -84,7 +84,7 @@ 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;
 	}