HatsuneMiku3939 / ngx_upstream_resolveMK

An nginx upstream resolve module using DNS SRV record. Works nicely with Mesos-DNS.
39 stars 8 forks source link

Error on build #7

Closed emilrowland closed 2 years ago

emilrowland commented 4 years ago

I tried building the latest version of this with NGINX 1.19.3 but I got the following error:

../ngx_upstream_resolveMK-master/ngx_http_upstream_resolveMK.c: In function ‘ngx_http_upstream_resolveMK’:
../ngx_upstream_resolveMK-master/ngx_http_upstream_resolveMK.c:321:5: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
   p = ngx_strchr(service.data, '.');
     ^
../ngx_upstream_resolveMK-master/ngx_http_upstream_resolveMK.c:323:11: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
   while ( p = ngx_strlchr(p+1, end, '.') ) {

From commit 04c07a0 is working.