Fix code warning.

Change-Id: Ib11fb49f528d3688351ae349d5b4e307c28b3967
diff --git a/mbtk/test/libmbtk_tcpip/mbtk_tcpip_test.c b/mbtk/test/libmbtk_tcpip/mbtk_tcpip_test.c
index d30d706..8a7d279 100755
--- a/mbtk/test/libmbtk_tcpip/mbtk_tcpip_test.c
+++ b/mbtk/test/libmbtk_tcpip/mbtk_tcpip_test.c
@@ -177,11 +177,15 @@
                 char type[10] = {0};
                 int read_cb_set;
                 memset(&info, 0x0, sizeof(mbtk_tcpip_info_t));
+                int ack_support,ssl_support,ignore_cert;
                 int count = sscanf(cmd, "link_open %d %s %d %d %s %s %d %d %d %d %d %d", &(info.link_id),
                                 info.ser_addr, &(info.ser_port), &(info.local_port), prot_type, type,
-                                &(info.ack_support), &(info.ssl_support), &(info.ignore_cert), &(info.heartbeat_time),
+                                &ack_support, &ssl_support, &ignore_cert, &(info.heartbeat_time),
                                 &(info.delay_time), &read_cb_set);
                 if(count == 12) {
+                    info.ack_support = (bool)ack_support;
+                    info.ssl_support = (bool)ssl_support;
+                    info.ignore_cert = (bool)ignore_cert;
                     if(!strncasecmp(prot_type, "UDP", 3)) {
                         info.prot_type = MBTK_SOCK_UDP;
                     } else {
@@ -327,7 +331,7 @@
 #if 1
     while(1)
     {
-        sleep(1000 * 365 * 24 * 60 * 60);
+        sleep(365 * 24 * 60 * 60);
     }
 #else
     sleep(1);
diff --git a/mbtk/test/libmbtk_tcpip/tcp_test.c b/mbtk/test/libmbtk_tcpip/tcp_test.c
index 51daace..550514b 100755
--- a/mbtk/test/libmbtk_tcpip/tcp_test.c
+++ b/mbtk/test/libmbtk_tcpip/tcp_test.c
@@ -14,6 +14,7 @@
 #include "mbtk_tcpip.h"
 #include "mbtk_log.h"
 
+#if 0
 
 static void help()
 {
@@ -86,7 +87,7 @@
         }
     }
 }
-
+#endif
 void tcpip_print_tcp_info(mbtk_tcpip_tcp_state_info_s *info)
 {
     printf("Link - %d\n", info->link_id);
@@ -116,17 +117,17 @@
 
     printf(">>>>>>>>>>>START TCP TEST>>>>>>>>>>>>>\r\n");
     mbtk_tcpip_err_enum err;
-        
+
     mbtk_tcpip_info_t info;
     memset(&info, 0x0, sizeof(mbtk_tcpip_info_t));
     char *ip = "www.chaixiongfeng.group";
-    strcpy(&info.ser_addr,ip);
+    strcpy(info.ser_addr,ip);
     info.link_id=1;
     info.ser_port =45002;
     info.prot_type = MBTK_SOCK_TCP;
     info.tcpip_type = MBTK_TCPIP_TYPE_CLIENT;
     info.read_cb = NULL;
-        
+
 
     err = mbtk_tcpip_sock_open((const mbtk_tcpip_info_t*)(&info));
     if(err == MBTK_TCPIP_ERR_SUCCESS) {
@@ -135,42 +136,42 @@
         printf("Link open fail:%d\n", err);
         return 0;
     }
-    
+
     while(1)
     {
         char *data="stargcharge connect\r\n";
         int len = mbtk_tcpip_send(1, data, strlen(data), NULL, 0);
-        if(len == strlen(data)) 
+        if(len == strlen(data))
         {
             printf("Send success:%d.\n", len);
-        } 
-        else 
+        }
+        else
         {
             printf("Send fail:%d/%d\n", len, strlen(data));
         }
 
         char buff[128];
         len = mbtk_tcpip_read(1, buff, 128);
-        if(len > 0) 
+        if(len > 0)
         {
             printf("RECV[%d]:%s\n", len, buff);
         }
-        else 
+        else
         {
             printf("RECV fail:%d\n", len);
         }
 
         err = mbtk_tcpip_sock_close(1);
-        if(err == MBTK_TCPIP_ERR_SUCCESS) 
+        if(err == MBTK_TCPIP_ERR_SUCCESS)
         {
             printf("Link close success.\n");
-        } 
-        else 
+        }
+        else
         {
             printf("Link close fail:%d\n", err);
         }
         sleep(5);
-    }      
+    }
 }