Browse code

tcp: minor cleanups & spelling

- removed F_CONN_NON_BLOCKING (not used anymore)
- spelling & whitespace cleanups

Andrei Pelinescu-Onciul authored on 25/03/2010 19:29:32
Showing 3 changed files
... ...
@@ -61,7 +61,6 @@
61 61
 
62 62
 
63 63
 /* tcp connection flags */
64
-#define F_CONN_NON_BLOCKING 1
65 64
 #define F_CONN_READ_W       2 /* watched for READ ev. in main */
66 65
 #define F_CONN_WRITE_W      4 /* watched for WRITE (main) */
67 66
 #define F_CONN_READER       8 /* handled by a tcp reader */
... ...
@@ -3750,9 +3750,9 @@ inline static int handle_tcpconn_ev(struct tcp_connection* tcpconn, short ev,
3750 3750
 #ifdef TCP_ASYNC
3751 3751
 send_to_child:
3752 3752
 #endif
3753
-		DBG("tcp: DBG: sendig to child, events %x\n", ev);
3753
+		DBG("tcp: DBG: sending to child, events %x\n", ev);
3754 3754
 #ifdef POLLRDHUP
3755
-		tcpconn->flags|=((int)!(ev & (POLLRDHUP|POLLHUP|POLLERR)) -1) & 
3755
+		tcpconn->flags|=((int)!(ev & (POLLRDHUP|POLLHUP|POLLERR)) -1) &
3756 3756
 							F_CONN_EOF_SEEN;
3757 3757
 #else /* POLLRDHUP */
3758 3758
 		tcpconn->flags|=((int)!(ev & (POLLHUP|POLLERR)) -1) & F_CONN_EOF_SEEN;
... ...
@@ -928,7 +928,7 @@ again:
928 928
 			}
929 929
 			/* if we received the fd there is most likely data waiting to
930 930
 			 * be read => process it first to avoid extra sys calls */
931
-			read_flags=((con->flags & (F_CONN_EOF_SEEN|F_CONN_FORCE_EOF)) && 
931
+			read_flags=((con->flags & (F_CONN_EOF_SEEN|F_CONN_FORCE_EOF)) &&
932 932
 						!(con->flags & F_CONN_OOB_DATA))? RD_CONN_FORCE_EOF
933 933
 						:0;
934 934
 			resp=tcp_read_req(con, &n, &read_flags);