X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/e80a6f5e0540d9e10ee957240e6f5b3faaa54021..44b53e7b789fa481a19db83e52cb3f15f0d90e85:/orte/libjorte/JORTEPublicationSend.c diff --git a/orte/libjorte/JORTEPublicationSend.c b/orte/libjorte/JORTEPublicationSend.c index 9b67ba2..b771c66 100644 --- a/orte/libjorte/JORTEPublicationSend.c +++ b/orte/libjorte/JORTEPublicationSend.c @@ -37,43 +37,40 @@ 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; }