]> rtime.felk.cvut.cz Git - orte.git/commit
JORTE: fix incompatible pointer type compiler warnings
authorMartin Vajnar <martin.vajnar@gmail.com>
Fri, 13 Sep 2013 10:08:23 +0000 (12:08 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Fri, 13 Sep 2013 10:08:23 +0000 (12:08 +0200)
commitabe4428aa6d40432ef293c37b180a674f2b66f00
tree02971557a41614bc8c1bf84e20ab13af92a48ee1
parentc3756b64914521d20f583c1b40bd6dae4ce5516f
JORTE: fix incompatible pointer type compiler warnings

Android's AttachCurrentThread() implementation differs from Oracle's.
In Android the prototype is:
  jint (*AttachCurrentThread)(JavaVM*, JNIEnv**, void*);
In Oracle's Java:
  jint (JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void *args);

Android expects JNIEnv** pointer, whereas Java expects void** pointer
to per thread environment structure.
orte/libjorte/JORTEDomainEvents.c
orte/libjorte/JORTESubscriptionCreate.c