- Revert WARNS to 2 because of mismatch between (xdrproc_t) and xdr_void().

- Add prototype of from_addr().
This commit is contained in:
hrs 2019-09-21 13:34:06 +00:00
parent fa5751c90d
commit a9fe137d5f
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,9 @@ SRCS= file.c sm_inter_svc.c sm_inter.h statd.c procs.c
CFLAGS+= -I${.OBJDIR}
LIBADD= rpcsvc
# XXX: mismatch between (xdrproc_t) and xdr_void().
WARNS?= 2
CLEANFILES= sm_inter_svc.c sm_inter.h
RPCSRC= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc/sm_inter.x

View File

@ -52,9 +52,10 @@ __FBSDID("$FreeBSD$");
#include "statd.h"
static const char *from_addr(struct sockaddr *);
static const char *
from_addr(saddr)
struct sockaddr *saddr;
from_addr(struct sockaddr *saddr)
{
static char inet_buf[INET6_ADDRSTRLEN];