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

Remove warning in coroipcc.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2462 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 16 лет назад
Родитель
Сommit
77e63f0044
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      lib/coroipcc.c

+ 3 - 1
lib/coroipcc.c

@@ -232,6 +232,7 @@ res_exit:
 	return (res);
 	return (res);
 }
 }
 
 
+#if _POSIX_THREAD_PROCESS_SHARED < 1
 static int
 static int
 priv_change_send (struct ipc_instance *ipc_instance)
 priv_change_send (struct ipc_instance *ipc_instance)
 {
 {
@@ -264,7 +265,6 @@ priv_change_send (struct ipc_instance *ipc_instance)
 	return (0);
 	return (0);
 }
 }
 
 
-#if _POSIX_THREAD_PROCESS_SHARED < 1
 #if defined(_SEM_SEMUN_UNDEFINED)
 #if defined(_SEM_SEMUN_UNDEFINED)
 union semun {
 union semun {
         int val;
         int val;
@@ -933,7 +933,9 @@ retry_semop:
 	 */
 	 */
 	res = CS_OK;
 	res = CS_OK;
 	
 	
+#if _POSIX_THREAD_PROCESS_SHARED < 1
 error_exit:
 error_exit:
+#endif
 	hdb_handle_put (&ipc_hdb, handle);
 	hdb_handle_put (&ipc_hdb, handle);
 	hdb_handle_put (&ipc_hdb, handle);
 	hdb_handle_put (&ipc_hdb, handle);