]> rtime.felk.cvut.cz Git - orte.git/commitdiff
JORTE: add type casts
authorMartin Vajnar <martin.vajnar@gmail.com>
Sun, 21 Jul 2013 15:56:48 +0000 (17:56 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Sun, 21 Jul 2013 15:56:48 +0000 (17:56 +0200)
orte/libjorte/JORTEDomainPropSet.c
orte/libjorte/JORTEPublicationPropertiesGet.c
orte/libjorte/JORTESubscriptionPropertiesGet.c

index 8f8afc16013cc7de891a08913d2e96358b1f0d4d..fe6abd80255c8592116a7221e520360c58ff6e44 100644 (file)
@@ -36,7 +36,7 @@
       str = (*env)->GetStringUTFChars(env,mgrs,0);
       
       //set managers
-      dp->mgrs=str;
+      dp->mgrs=(char *)str;
 
       flag_ok = 1;
     } while (0);
index 0689013e12305d8ba1188b04c884cbdc4ad208f7..3e70197d591b824d61f6eb8be419fa4e04b0690e 100644 (file)
@@ -104,7 +104,7 @@ Java_org_ocera_orte_Publication_jORTEPublicationPropertiesGet
     // setting object's fields
     /////////////////////////////////////////////////
     // set topic
-    if(!setTopic(env,cls_pp,obj_pp,publ_prop->topic))
+    if(!setTopic(env,cls_pp,obj_pp,(const char *)publ_prop->topic))
     {
       #ifdef TEST_STAGE
         printf(":!c: setTopic() failed! \n");
@@ -113,7 +113,7 @@ Java_org_ocera_orte_Publication_jORTEPublicationPropertiesGet
     }
     /////////////////////////////////////////////////
     // set type
-    if(!setType(env,cls_pp,obj_pp,publ_prop->typeName))
+    if(!setType(env,cls_pp,obj_pp,(const char *)publ_prop->typeName))
     {
       #ifdef TEST_STAGE
         printf(":!c: setType() failed! \n");
index 73b82e620809183f16ecff3b889cb8972902e2b8..0e1c6525bdf19cf94bab99b399bdce0abb42abaf 100644 (file)
@@ -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");