Commit 88ddcd3c authored by Larry Sachs's avatar Larry Sachs Committed by Rick Bell

Fixes to compile on ubuntu gcc

Minor updates to recently committed swig interface files.

Change-Id: I3e41ba093c15181e5fdf229df6d9d2633b981f79
Signed-off-by: Larry Sachs's avatarLarry Sachs <>
Reviewed-on: default avatarIoTivity Jenkins <>
Reviewed-by: George Nash's avatarGeorge Nash <>
Reviewed-by: default avatarRick Bell <>
parent b4e4d805
......@@ -498,7 +498,7 @@ void jni_oc_random_pin_callback(const unsigned char *pin, size_t pin_len, void *
jstring jpin = JCALL1(NewStringUTF, (data->jenv), pin);
jstring jpin = JCALL1(NewStringUTF, (data->jenv), (const char *)pin);
/* TODO convert pin to java string */
JCALL3(CallObjectMethod, (data->jenv), data->jcb_obj, mid_handler, jpin);
......@@ -215,7 +215,7 @@ int jni_obt_request_random_pin(oc_uuid_t *uuid, oc_obt_device_status_cb_t callba
/* For oc_obt_perform_random_pin_otm use Java String as the pin input.
Use the Java String length to input the pin_len */
%typemap(in,numinputs=1) (const char *pin, size_t pin_len)
%typemap(in,numinputs=1) (char *pin, size_t pin_len)
$1 = ($1_type)JCALL2(GetStringUTFChars, jenv, $input, 0);
$2 = ($2_type)JCALL1(GetStringUTFLength, jenv, $input);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment