]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTESubscriptionPropertiesGet.c
Revert "JORTE: update license headers and clean-up includes"
[orte.git] / orte / libjorte / JORTESubscriptionPropertiesGet.c
index 49767e98a0d73ff6b220cfc2c6b8c567edffb99f..0e1c6525bdf19cf94bab99b399bdce0abb42abaf 100644 (file)
@@ -68,7 +68,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesGet
      break;
     }
     // get cls
-    cls_sp = (*env)->FindClass(env, "org/ocera/orte/types/SubsProp");
+    cls_sp = findClass(env, "org.ocera.orte.types.SubsProp");
     if(cls_sp == 0)
     {
       #ifdef TEST_STAGE
@@ -101,7 +101,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesGet
     // setting object's fields
     /////////////////////////////////////////////////
     // set topic
-    if(!setTopic(env,cls_sp,obj_sp,subs_prop->topic))
+    if(!setTopic(env,cls_sp,obj_sp,(const char *)subs_prop->topic))
     {
       #ifdef TEST_STAGE
         printf(":!c: setTopic() failed! \n");
@@ -110,7 +110,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesGet
     }
     /////////////////////////////////////////////////
     // set type
-    if(!setType(env,cls_sp,obj_sp,subs_prop->typeName))
+    if(!setType(env,cls_sp,obj_sp,(const char *)subs_prop->typeName))
     {
       #ifdef TEST_STAGE
         printf(":!c: setType() failed! \n");
@@ -136,7 +136,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesGet
                         (jint) subs_prop->typeChecksum);
     /////////////////////////////////////////////////
     // fieldID - minSeparation
-    cls_ntpT = (*env)->FindClass(env, "org/ocera/orte/types/NtpTime");
+    cls_ntpT = findClass(env, "org.ocera.orte.types.NtpTime");
     if(cls_ntpT == 0)
     {
       #ifdef TEST_STAGE