Fix code warning.

Change-Id: Ib11fb49f528d3688351ae349d5b4e307c28b3967
diff --git a/mbtk/libmbtk_lib/ril/mbtk_info_api.c b/mbtk/libmbtk_lib/ril/mbtk_info_api.c
index b5fc96d..9fca322 100755
--- a/mbtk/libmbtk_lib/ril/mbtk_info_api.c
+++ b/mbtk/libmbtk_lib/ril/mbtk_info_api.c
@@ -14,7 +14,7 @@
 #include "mbtk_info.h"
 #include "mbtk_list.h"
 #include "mbtk_utils.h"
-
+#include "mbtk_str.h"
 #include "time.h"
 
 
@@ -411,7 +411,7 @@
         // log_hex("data", send_buff, send_buff_len);
         // mbtk_info_pack_data_set(pack, data, data_len);
         pack->data_len = (uint16)send_buff_len;
-        pack->data = (const uint8*)send_buff;
+        pack->data = (uint8*)send_buff;
     }
 
     pthread_mutex_lock(&handle->send_mutex);
@@ -546,7 +546,7 @@
     {
         if(handle->exit_fd[1] > 0)
         {
-            write(handle->exit_fd[1], "EXIT", 4);
+            mbtk_write(handle->exit_fd[1], "EXIT", 4);
         }
         pthread_join(handle->read_thread_id,NULL);
         LOG("mbtk_info_handle_get() server not ready.");
@@ -587,7 +587,7 @@
     }
 
     if((*handle)->exit_fd[1] > 0) {
-        write((*handle)->exit_fd[1], "EXIT", 4);
+        mbtk_write((*handle)->exit_fd[1], "EXIT", 4);
     }
 
     // Wait read_thread exit.
@@ -1766,7 +1766,7 @@
 */
 int mbtk_net_time_get(mbtk_info_handle_t* handle, char* time_str)
 {
-    uint8 buff[SOCK_MSG_LEN_MAX] = {0};
+    char buff[SOCK_MSG_LEN_MAX] = {0};
     if(handle == NULL || time_str == NULL)
     {
         LOGE("ARG error.");
@@ -1776,7 +1776,7 @@
     if(info_item_process(handle, MBTK_INFO_ID_DEV_CELL_TIME_REQ, NULL, 0, buff) > 0) {
         memcpy(time_str,buff,strlen(buff));
 
-        uint8 *temp = strstr(time_str, ",");
+        char *temp = strstr(time_str, ",");
         if(temp) {
             *temp = ' '; // ',' -> ' '
 
@@ -1787,7 +1787,7 @@
 
             if(temp) {
                 // Copy +XX or -XX
-                uint8 *last_ptr = temp + strlen(temp) + 1;
+                char *last_ptr = temp + strlen(temp) + 1;
                 while(last_ptr > temp) {
                     *last_ptr = *(last_ptr - 1);
                     last_ptr--;
@@ -2222,7 +2222,7 @@
     //  /sys/devices/virtual/usim_event/usim0/send_event
     char cmd[100] = {0};
     sprintf(cmd, "echo %d > /sys/devices/virtual/usim_event/usim0/send_event", power ? 0 : 1);
-    system(cmd);
+    mbtk_system(cmd);
 
     return 0;
 }
@@ -2243,15 +2243,15 @@
 
     switch(type) {
         case 0: {
-            system("reboot");
+            mbtk_system("reboot");
             break;
         }
         case 1: {
-            system("poweroff");
+            mbtk_system("poweroff");
             break;
         }
         case 2: {
-            system("halt");
+            mbtk_system("halt");
             break;
         }
         default: {