]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTEPublicationSend.c
Reformat the sources with orte/uncrustify script
[orte.git] / orte / libjorte / JORTEPublicationSend.c
index 9b67ba21282842ee3cc44ea7c65ba128a1001d18..b771c6666ff9145cb16c7d69134159096dd43a08 100644 (file)
 
 JNIEXPORT jboolean JNICALL
 Java_org_ocera_orte_Publication_jORTEPublicationSend
-(JNIEnv *env, jobject obj, jlong pub_handle)
+  (JNIEnv *env, jobject obj, jlong pub_handle)
 {
   int       flag_ok = 0;
   int8_t    b;
+
   //
 
   #ifdef TEST_STAGE
-    printf(":c: jORTEPublicationSend() called.. \n");
+  printf(":c: jORTEPublicationSend() called.. \n");
   #endif
 
-  do
-  {
+  do {
     /////////////////////////////////////////////////
     // call ORTE function
-    b = ORTEPublicationSend((ORTEPublication *) pub_handle);
+    b = ORTEPublicationSend((ORTEPublication *)pub_handle);
     #ifdef TEST_STAGE
-      printf(":c: b = ORTEPublicationSend() = %d \n",b);
+    printf(":c: b = ORTEPublicationSend() = %d \n", b);
     #endif
-    if (b == ORTE_BAD_HANDLE)
-    {
+    if (b == ORTE_BAD_HANDLE) {
      #ifdef TEST_STAGE
-       printf(":!c: data not sent! [bad pub handle] \n");
+      printf(":!c: data not sent! [bad pub handle] \n");
      #endif
-     break;
+      break;
     }
-    if(b == ORTE_OK)
-    {
+    if (b == ORTE_OK) {
      #ifdef TEST_STAGE
-       printf(":c: data sent succesfuly.. \n");
+      printf(":c: data sent succesfuly.. \n");
      #endif
     }
     // set flag
     flag_ok = 1;
-  } while(0);
+  } while (0);
 
-  if(flag_ok == 0)
-  {
+  if (flag_ok == 0) {
     return 0;
   }