Fix code warning.
Change-Id: Ib11fb49f528d3688351ae349d5b4e307c28b3967
diff --git a/mbtk/test/others/mbtk_gnss_cli.c b/mbtk/test/others/mbtk_gnss_cli.c
index 8699a39..825d501 100755
--- a/mbtk/test/others/mbtk_gnss_cli.c
+++ b/mbtk/test/others/mbtk_gnss_cli.c
@@ -27,6 +27,7 @@
#include "mbtk_log.h"
#include "mbtk_type.h"
#include "mbtk_gnss.h"
+#include "mbtk_utils.h"
#define GNSS_SOCK_PATH "/tmp/mbtk_gnss_sock"
@@ -81,15 +82,15 @@
} else if(cmd == GNSS_CMD_DEINIT) {
sprintf(buff, "gnss_deinit");
} else if(cmd == GNSS_CMD_SETTING) {
- sprintf(buff, "gnss_setting:%s", arg);
+ sprintf(buff, "gnss_setting:%s", (char*)arg);
} else if(cmd == GNSS_CMD_DL) {
- sprintf(buff, "gnss_dl:%s", arg);
+ sprintf(buff, "gnss_dl:%s", (char*)arg);
} else {
printf("Unknown cmd.\n");
return -1;
}
- write(sock_listen_fd, buff, strlen(buff));
+ mbtk_write(sock_listen_fd, buff, strlen(buff));
int len = 0;
char *rsp = NULL;