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);