]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTEDomainInitEvents.c
Reformat the sources with orte/uncrustify script
[orte.git] / orte / libjorte / JORTEDomainInitEvents.c
index 3bd004f75532b33094ef76d90413500c20c354fb..01cc45c916fe4cf471aa601833c3d41e9ebd402e 100644 (file)
 
 JNIEXPORT jlong JNICALL
 Java_org_ocera_orte_types_DomainEvents_jORTEDomainInitEvents
-(JNIEnv *env, jobject obj)
+  (JNIEnv *env, jobject obj)
 {
   ORTEDomainAppEvents *evs;
 
   // memory allocation
-  evs = (ORTEDomainAppEvents *) malloc(sizeof(ORTEDomainAppEvents));
-  if(evs == 0)
-  {
+  evs = (ORTEDomainAppEvents *)malloc(sizeof(ORTEDomainAppEvents));
+  if (evs == 0) {
     printf(":!c: evs = NULL [not enough memory] \n");
     return 0;
   }
   // call the liborte function
-  if (!ORTEDomainInitEvents(evs))
-  {
+  if (!ORTEDomainInitEvents(evs)) {
     printf(":!c: events not initialized! \n");
     free(evs);
     return 0;
   }
   #ifdef TEST_STAGE
-     printf(":c: events initialized.. \n");
+  printf(":c: events initialized.. \n");
   #endif
 
-  return ((jlong) evs);
+  return ((jlong)evs);
 
 }