rpcbind(8): Raise WARNS to 3 and fix warnings.
authorSascha Wildner <saw@online.de>
Thu, 5 Dec 2013 03:11:38 +0000 (04:11 +0100)
committerSascha Wildner <saw@online.de>
Thu, 5 Dec 2013 03:11:38 +0000 (04:11 +0100)
usr.sbin/rpcbind/Makefile
usr.sbin/rpcbind/rpcbind.c

index 618c3ee..2accdba 100644 (file)
@@ -6,7 +6,7 @@ PROG=   rpcbind
 MAN=   rpcbind.8
 SRCS=  check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
        rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c
-WARNS?=        1
+WARNS?=        3
 
 CFLAGS+= -DPORTMAP -DLIBWRAP
 
index cbd6812..cc97581 100644 (file)
@@ -166,10 +166,7 @@ main(int argc, char *argv[])
 
        while ((nconf = getnetconfig(nc_handle))) {
            if (nconf->nc_flag & NC_VISIBLE)
-               if (ipv6_only == 1 && strcmp(nconf->nc_protofmly,
-                   "inet") == 0) {
-                   /* DO NOTHING */
-               } else
+               if (ipv6_only != 1 || strcmp(nconf->nc_protofmly, "inet") != 0)
                    init_transport(nconf);
        }
        endnetconfig(nc_handle);