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

Use hdb_handle_t for handle type in lcr_ifact.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1839 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 лет назад
Родитель
Сommit
0c1eb7cb1d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      lcr/lcr_ifact.c

+ 2 - 1
lcr/lcr_ifact.c

@@ -72,7 +72,7 @@ static struct hdb_handle_database lcr_iface_instance_database = {
 	.iterator	= 0
 };
 
-static unsigned int g_component_handle = 0xFFFFFFFF;
+static hdb_handle_t g_component_handle = 0xFFFFFFFF;
 
 #if defined(COROSYNC_LINUX) || defined(COROSYNC_SOLARIS)
 static int lcr_select_so (const struct dirent *dirent)
@@ -512,6 +512,7 @@ void lcr_component_register (struct lcr_comp *comp)
 {
 	struct lcr_component_instance *instance;
 	static hdb_handle_t comp_handle;
+	int res;
 
 	hdb_handle_create (&lcr_component_instance_database,
 		sizeof (struct lcr_component_instance),