comparison src/http/modules/ngx_http_geo_module.c @ 2401:39f3b4f9989e

style fix: remove tabs
author Igor Sysoev <igor@sysoev.ru>
date Thu, 11 Dec 2008 10:22:25 +0000
parents aecf0755cee3
children 6978f3827a5c
comparison
equal deleted inserted replaced
2400:2c2b79633ded 2401:39f3b4f9989e
695 if (ngx_strcmp(net->data, "255.255.255.255") == 0) { 695 if (ngx_strcmp(net->data, "255.255.255.255") == 0) {
696 cidrin.addr = 0xffffffff; 696 cidrin.addr = 0xffffffff;
697 cidrin.mask = 0xffffffff; 697 cidrin.mask = 0xffffffff;
698 698
699 } else { 699 } else {
700 rc = ngx_ptocidr(net, &cidrin); 700 rc = ngx_ptocidr(net, &cidrin);
701 701
702 if (rc == NGX_ERROR) { 702 if (rc == NGX_ERROR) {
703 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 703 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
704 "invalid network \"%V\"", net); 704 "invalid network \"%V\"", net);
705 return NGX_CONF_ERROR; 705 return NGX_CONF_ERROR;
706 } 706 }
707 707
708 if (rc == NGX_DONE) { 708 if (rc == NGX_DONE) {
709 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, 709 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
710 "low address bits of %V are meaningless", 710 "low address bits of %V are meaningless",
711 net); 711 net);
712 } 712 }
713 713
714 cidrin.addr = ntohl(cidrin.addr); 714 cidrin.addr = ntohl(cidrin.addr);
715 cidrin.mask = ntohl(cidrin.mask); 715 cidrin.mask = ntohl(cidrin.mask);
716 } 716 }
717 717
718 if (del) { 718 if (del) {
719 if (ngx_radix32tree_delete(ctx->tree, cidrin.addr, cidrin.mask) 719 if (ngx_radix32tree_delete(ctx->tree, cidrin.addr, cidrin.mask)
720 != NGX_OK) 720 != NGX_OK)