浏览代码

- warning fix

Andrei Pelinescu-Onciul 17 年之前
父节点
当前提交
fcc935bb69
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tcp_main.c

+ 1 - 0
tcp_main.c

@@ -3101,6 +3101,7 @@ inline static int handle_tcpconn_ev(struct tcp_connection* tcpconn, short ev,
 	/* pass it to child, so remove it from the io watch list  and the local
 	 *  timer */
 #ifdef TCP_BUF_WRITE
+	empty_q=0; /* warning fix */
 	if (unlikely((ev & (POLLOUT|POLLERR|POLLHUP)) &&
 					(tcpconn->flags & F_CONN_WRITE_W))){
 		if (unlikely((ev & (POLLERR|POLLHUP)) ||