From 4afd76d932c2a76a8fa0278fa9c11cbeb15b4a8a Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Thu, 9 Jun 2016 13:28:24 -0700 Subject: [PATCH] Updated Zephyr command line shell after API changes JerryScript-DCO-1.0-Signed-off-by: Jimmy Huang jimmy.huang@intel.com --- targets/arduino_101/src/main-zephyr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/arduino_101/src/main-zephyr.c b/targets/arduino_101/src/main-zephyr.c index 814b829b5..651f4961d 100644 --- a/targets/arduino_101/src/main-zephyr.c +++ b/targets/arduino_101/src/main-zephyr.c @@ -49,7 +49,7 @@ int jerryscript_test () "print ('Hi JS World! '+test);"; printf ("Script [%s]\n",script); - ret_code = jerry_run_simple ((jerry_api_char_t *) script, + ret_code = jerry_run_simple ((jerry_char_t *) script, strlen (script), JERRY_FLAG_EMPTY); @@ -129,7 +129,7 @@ static int shell_cmd_handler (int argc, char *argv[]) jerry_completion_code_t ret_code; - ret_code = jerry_run_simple ((jerry_api_char_t *) source_buffer, + ret_code = jerry_run_simple ((jerry_char_t *) source_buffer, strlen (source_buffer), JERRY_FLAG_EMPTY);