style fix: remove tabs

This commit is contained in:
Igor Sysoev 2007-01-12 20:26:39 +00:00
parent 94e3ad5e7f
commit ad13a152a8
6 changed files with 23 additions and 23 deletions

View file

@ -1527,26 +1527,26 @@ ngx_ssl_remove_session(SSL_CTX *ssl, ngx_ssl_session_t *sess)
do {
if ((u_char) len == node->data) {
sess_id = (ngx_ssl_sess_id_t *) node;
sess_id = (ngx_ssl_sess_id_t *) node;
if (ngx_strncmp(id, sess_id->id, (size_t) len) == 0) {
if (ngx_strncmp(id, sess_id->id, (size_t) len) == 0) {
sess_id->next->prev = sess_id->prev;
sess_id->prev->next = sess_id->next;
sess_id->next->prev = sess_id->prev;
sess_id->prev->next = sess_id->next;
ngx_rbtree_delete(cache->session_rbtree, node);
ngx_rbtree_delete(cache->session_rbtree, node);
ngx_slab_free_locked(shpool, sess_id->session);
ngx_slab_free_locked(shpool, sess_id->session);
#if (NGX_PTR_SIZE == 4)
ngx_slab_free_locked(shpool, sess_id->id);
ngx_slab_free_locked(shpool, sess_id->id);
#endif
ngx_slab_free_locked(shpool, sess_id);
ngx_slab_free_locked(shpool, sess_id);
goto done;
}
}
goto done;
}
}
node = node->right;
node = node->right;
} while (node != sentinel && hash == node->key);

View file

@ -2381,7 +2381,7 @@ ngx_http_ssi_if(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx,
noregex = 0;
flags = NGX_HTTP_SSI_ADD_ZERO;
last--;
p++;
p++;
} else {
noregex = 1;

View file

@ -171,14 +171,14 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
if (!peer->down) {
if (peer->max_fails == 0 || peer->fails < peer->max_fails) {
break;
}
if (peer->max_fails == 0 || peer->fails < peer->max_fails) {
break;
}
if (now - peer->accessed > peer->fail_timeout) {
peer->fails = 0;
break;
}
if (now - peer->accessed > peer->fail_timeout) {
peer->fails = 0;
break;
}
} else {
iphp->rrp.tried[n] |= m;

View file

@ -199,7 +199,7 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_perl_ctx_t));
if (ctx == NULL) {
ngx_http_finalize_request(r, NGX_ERROR);
return;
return;
}
ngx_http_set_ctx(r, ctx, ngx_http_perl_module);

View file

@ -1191,7 +1191,7 @@ ngx_imap_do_auth(ngx_imap_session_t *s)
s->state = 0;
if (s->connection->read->timer_set) {
ngx_del_timer(s->connection->read);
ngx_del_timer(s->connection->read);
}
s->login_attempt++;

View file

@ -131,7 +131,7 @@ typedef int sig_atomic_t;
#define NGX_PTR_SIZE 4
#define NGX_SIZE_T_LEN sizeof("-2147483648") - 1
#define NGX_MAX_SIZE_T_VALUE 2147483647
#define NGX_MAX_SIZE_T_VALUE 2147483647
#define NGX_TIME_T_LEN sizeof("-2147483648") - 1
#define NGX_TIME_T_SIZE 4
#define NGX_OFF_T_LEN sizeof("-9223372036854775807") - 1