Fix indentation
This commit is contained in:
parent
22e52ffad1
commit
dc49f10d92
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ ngx_http_geoip2_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
|
||||||
ngx_http_geoip2_conf_t *gcf;
|
ngx_http_geoip2_conf_t *gcf;
|
||||||
ngx_addr_t addr;
|
ngx_addr_t addr;
|
||||||
ngx_array_t *xfwd;
|
ngx_array_t *xfwd;
|
||||||
u_char *p;
|
u_char *p;
|
||||||
|
|
||||||
#if (NGX_HAVE_INET6)
|
#if (NGX_HAVE_INET6)
|
||||||
uint8_t address[16], *addressp = address;
|
uint8_t address[16], *addressp = address;
|
||||||
|
@ -198,7 +198,7 @@ ngx_http_geoip2_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
|
||||||
case MMDB_DATA_TYPE_UINT32:
|
case MMDB_DATA_TYPE_UINT32:
|
||||||
p = ngx_palloc(r->pool, NGX_OFF_T_LEN);
|
p = ngx_palloc(r->pool, NGX_OFF_T_LEN);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
v->len = ngx_sprintf(p, "%O", entry_data.uint32) - p;
|
v->len = ngx_sprintf(p, "%O", entry_data.uint32) - p;
|
||||||
v->data = p;
|
v->data = p;
|
||||||
|
|
Loading…
Reference in a new issue