]> 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)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 09:06:28 +0000 (11:06 +0200)
commit944ad6b0b14b96fc11a82b2b1ce8e6d257bca4e1
treee76eb4ac804a9fc6f51792582096042017ca9253
parent43f25e365fcb11ae6266dd7c12d1b7b9f27011bf
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