Permalink
Browse files

fix the coding style for tcp_session.c and tcp_session.h

  • Loading branch information...
1 parent 2bab0a6 commit 08a6357f5e33e38a4fa3734f2b5efb3334510bbf @yaoweibin committed Jul 4, 2012
Showing with 7 additions and 9 deletions.
  1. +4 −4 ngx_tcp_session.c
  2. +3 −5 ngx_tcp_session.h
View
@@ -279,10 +279,10 @@ ngx_tcp_set_session_socket(ngx_tcp_session_t *s)
keepalive = 1;
if (setsockopt(s->connection->fd, SOL_SOCKET, SO_KEEPALIVE,
- (const void *) &keepalive, sizeof(int)) == -1)
+ (const void *) &keepalive, sizeof(int)) == -1)
{
ngx_log_error(NGX_LOG_ALERT, s->connection->log, ngx_socket_errno,
- "setsockopt(SO_KEEPALIVE) failed");
+ "setsockopt(SO_KEEPALIVE) failed");
}
}
@@ -293,7 +293,7 @@ ngx_tcp_set_session_socket(ngx_tcp_session_t *s)
== -1)
{
ngx_log_error(NGX_LOG_ALERT, s->connection->log, ngx_socket_errno,
- "setsockopt(TCP_NODELAY) failed");
+ "setsockopt(TCP_NODELAY) failed");
}
s->connection->tcp_nodelay = NGX_TCP_NODELAY_SET;
@@ -311,7 +311,7 @@ ngx_tcp_process_session(ngx_connection_t *c)
cscf = ngx_tcp_get_module_srv_conf(s, ngx_tcp_core_module);
- /*process the acl*/
+ /* process the ACL */
if (ngx_tcp_access_handler(s) == NGX_ERROR) {
ngx_tcp_finalize_session(s);
return;
View
@@ -46,9 +46,9 @@ typedef void (*ngx_tcp_cleanup_pt)(void *data);
struct ngx_tcp_cleanup_s {
- ngx_tcp_cleanup_pt handler;
- void *data;
- ngx_tcp_cleanup_t *next;
+ ngx_tcp_cleanup_pt handler;
+ void *data;
+ ngx_tcp_cleanup_t *next;
};
void ngx_tcp_init_connection(ngx_connection_t *c);
@@ -68,6 +68,4 @@ ngx_tcp_cleanup_t * ngx_tcp_cleanup_add(ngx_tcp_session_t *s, size_t size);
ngx_int_t ngx_tcp_access_handler(ngx_tcp_session_t *s);
ngx_int_t ngx_tcp_log_handler(ngx_tcp_session_t *s);
-extern ngx_module_t ngx_tcp_proxy_module;
-
#endif

0 comments on commit 08a6357

Please sign in to comment.