comparison src/http/modules/ngx_http_geoip_module.c @ 5758:f3df4e420ae7

Style: remove whitespace between function name and parentheses. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
author Piotr Sikora <piotr@cloudflare.com>
date Tue, 08 Jul 2014 03:03:14 -0700
parents f7fe817c92a2
children 494c2c2a0247
comparison
equal deleted inserted replaced
5757:c5ec6944de98 5758:f3df4e420ae7
689 return NGX_CONF_ERROR; 689 return NGX_CONF_ERROR;
690 } 690 }
691 691
692 if (cf->args->nelts == 3) { 692 if (cf->args->nelts == 3) {
693 if (ngx_strcmp(value[2].data, "utf8") == 0) { 693 if (ngx_strcmp(value[2].data, "utf8") == 0) {
694 GeoIP_set_charset (gcf->country, GEOIP_CHARSET_UTF8); 694 GeoIP_set_charset(gcf->country, GEOIP_CHARSET_UTF8);
695 695
696 } else { 696 } else {
697 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 697 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
698 "invalid parameter \"%V\"", &value[2]); 698 "invalid parameter \"%V\"", &value[2]);
699 return NGX_CONF_ERROR; 699 return NGX_CONF_ERROR;
744 return NGX_CONF_ERROR; 744 return NGX_CONF_ERROR;
745 } 745 }
746 746
747 if (cf->args->nelts == 3) { 747 if (cf->args->nelts == 3) {
748 if (ngx_strcmp(value[2].data, "utf8") == 0) { 748 if (ngx_strcmp(value[2].data, "utf8") == 0) {
749 GeoIP_set_charset (gcf->org, GEOIP_CHARSET_UTF8); 749 GeoIP_set_charset(gcf->org, GEOIP_CHARSET_UTF8);
750 750
751 } else { 751 } else {
752 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 752 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
753 "invalid parameter \"%V\"", &value[2]); 753 "invalid parameter \"%V\"", &value[2]);
754 return NGX_CONF_ERROR; 754 return NGX_CONF_ERROR;
805 return NGX_CONF_ERROR; 805 return NGX_CONF_ERROR;
806 } 806 }
807 807
808 if (cf->args->nelts == 3) { 808 if (cf->args->nelts == 3) {
809 if (ngx_strcmp(value[2].data, "utf8") == 0) { 809 if (ngx_strcmp(value[2].data, "utf8") == 0) {
810 GeoIP_set_charset (gcf->city, GEOIP_CHARSET_UTF8); 810 GeoIP_set_charset(gcf->city, GEOIP_CHARSET_UTF8);
811 811
812 } else { 812 } else {
813 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 813 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
814 "invalid parameter \"%V\"", &value[2]); 814 "invalid parameter \"%V\"", &value[2]);
815 return NGX_CONF_ERROR; 815 return NGX_CONF_ERROR;