Sfoglia il codice sorgente

Merge trunk revision 2462:
r2462 | sdake | 2009-09-19 23:53:10 -0700 (Sat, 19 Sep 2009) | 2 lines

Remove warning in coroipcc.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2464 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 anni fa
parent
commit
76a2183cf3
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      lib/coroipcc.c

+ 3 - 1
lib/coroipcc.c

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