[EMAIL PROTECTED] wrote:
         char sb[TCN_BUFFER_SZ];
if ((ss = (*s->net->recv)(s->opaque, sb, &nbytes)) == APR_SUCCESS)
-            (*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, sb);
+            (*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, 
(jbyte*)sb);

This should be:
(*e)->SetByteArrayRegion(e, buf, offset, (jsize)nbytes, (jbyte*)&sb[0]);

Some compilers issue that as warning when you try to cast the
static buffer without specifying a true pointer.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to