Fix a compilation error. Remove spaces.
This commit is contained in:
parent
bb3e006354
commit
a2d7a49107
1 changed files with 63 additions and 64 deletions
|
@ -167,7 +167,7 @@ ngx_http_geoip2_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
|
||||||
#if (NGX_HAVE_INET6)
|
#if (NGX_HAVE_INET6)
|
||||||
if (ngx_memcmp(&address, &gcf->address, sizeof(address)) != 0) {
|
if (ngx_memcmp(&address, &gcf->address, sizeof(address)) != 0) {
|
||||||
#else
|
#else
|
||||||
if (address != gcf->address)
|
if (address != gcf->address) {
|
||||||
#endif
|
#endif
|
||||||
memcpy(&gcf->address, &address, sizeof(address));
|
memcpy(&gcf->address, &address, sizeof(address));
|
||||||
gcf->result = MMDB_lookup_sockaddr(&gcf->database, addr.sockaddr,
|
gcf->result = MMDB_lookup_sockaddr(&gcf->database, addr.sockaddr,
|
||||||
|
@ -205,7 +205,6 @@ ngx_http_geoip2_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
|
||||||
not_found:
|
not_found:
|
||||||
|
|
||||||
v->not_found = 1;
|
v->not_found = 1;
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
|
Loading…
Reference in a new issue