Subject: libc/rpc/rpc_generic.c dosn't care about INET6
To: None <tech-userlevel@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-userlevel
Date: 07/14/2004 17:54:54
NetBSD IANZAG 2.0G NetBSD 2.0G (IANZAG) #0: Tue Jul 13 22:38:35 NOVST 2004  
toor@IANZAG:/home/ianzag/NetBSD/current/build/obj/i386/sys/arch/i386/compile/IANZAG 
i386

/etc/mk.conf -> MKINET6=no

#   compile  libc/rpc_generic.ln
CC=/usr/src/tooldir.NetBSD-2.0G-i386/bin/i386--netbsdelf-gcc /usr/src/tooldir.NetBSD-2.0G-i386/bin/i386--netbsdelf-lint 
-chapbxzF -w -X 272 -d /usr/include  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS 
-D_REENTRANT -I/usr/src/lib/libc/include -I/usr/src/lib/libc -DNLS 
-D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -I/usr/src/libexec/ld.elf_so 
-I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/libc 
-DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT    
-i /usr/src/lib/libc/rpc/rpc_generic.c
/usr/src/lib/libc/rpc/rpc_generic.c(812): warning: argument new unused in 
function __rpc_fixup_addr [231]
/usr/src/lib/libc/rpc/rpc_generic.c(812): warning: argument svc unused in 
function __rpc_fixup_addr [231]
*** Error code 1

int
__rpc_fixup_addr(struct netbuf *new, const struct netbuf *svc)
{
#ifdef INET6
        [snip]
#endif
        return 1;
}

Probably something like below would be better ?

__rpc_fixup_addr(struct netbuf *new, const struct netbuf *svc)
{
#ifdef INET6
        [snip]
#else
    new = new; svc = svc;
#endif
        return 1;
}

// wbr