Fix mbtk_logd warning.

Change-Id: I3df4bbbfb0e8d865fd23e8beb0752b1226410cc9
diff --git a/mbtk/mbtk_logd/socket_read.c b/mbtk/mbtk_logd/socket_read.c
index df8fe27..7b54051 100755
--- a/mbtk/mbtk_logd/socket_read.c
+++ b/mbtk/mbtk_logd/socket_read.c
@@ -10,6 +10,9 @@
 #include <time.h>
 #include <unistd.h>
 #include <errno.h>
+#include <stdlib.h>
+#include <pthread.h>
+
 #include "log_config.h"
 
 #define _MOPEN_RILD_CONNET_NUM  5
@@ -17,12 +20,15 @@
 
 static int client_sockfd[_MOPEN_RILD_CONNET_NUM];
 
-static const char* log_file, *log_ip, *log_port, *log_prefix, *pid_file, *hostname;
+static char* log_file;
 static int log_size = 1 * 1024 * 1024;
 
 static log_config_entry* config = NULL;
 static char tmp_log[48] = {0};
 
+int tcp_connect(char* ip, int port);
+char *strstr_tail(const char *dst, const char *src);
+#if 0
 static int fileter_log(int pri, char* tag, struct filter_list_t* filter)
 {
     struct filter_list_t* _filter = filter;
@@ -49,20 +55,21 @@
 
     return -1;
 }
+#endif
 
 int socket_log_print(
     int fd,
     struct file_list_t* _file_list,
     char* entry)
 {
-    char priChar;
+//    char priChar;
     // char timeBuf[32];
     // time_t timetemp; // 定义一个时间结构体变量
     char defaultBuffer[512];
     size_t totalLen;
     int fd_new = fd;
     struct stat s;
-    char* ret = NULL;
+    int ret = 0;
 
     if (log_size && (!stat(tmp_log, &s)) && (s.st_size > log_size)) {
         fd_new = get_rotate_file(fd_new, log_file, _file_list);