From 8acbfb4949510965773b81b9e10e781e3a230d79 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 26 Oct 2003 05:51:51 +0000 Subject: Make this compile cleanly. Switch to using rpcgen to generate code that can be compiled on an ansi-C compiler, so that it puts the xdrproc_t casts in. This also implies a slight function name change. --- usr.sbin/bootparamd/bootparamd/Makefile | 6 +++--- usr.sbin/bootparamd/bootparamd/bootparamd.c | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'usr.sbin/bootparamd/bootparamd') diff --git a/usr.sbin/bootparamd/bootparamd/Makefile b/usr.sbin/bootparamd/bootparamd/Makefile index d312288..11c6390 100644 --- a/usr.sbin/bootparamd/bootparamd/Makefile +++ b/usr.sbin/bootparamd/bootparamd/Makefile @@ -13,12 +13,12 @@ CLEANFILES= ${GENSRCS} RPCSRC= ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x bootparam_prot_svc.c: ${RPCSRC} - rpcgen -m -o ${.TARGET} ${RPCSRC} + rpcgen -C -m -o ${.TARGET} ${RPCSRC} bootparam_prot_xdr.c: ${RPCSRC} - rpcgen -c -o ${.TARGET} ${RPCSRC} + rpcgen -C -c -o ${.TARGET} ${RPCSRC} bootparam_prot.h: ${RPCSRC} - rpcgen -h -o ${.TARGET} ${RPCSRC} + rpcgen -C -h -o ${.TARGET} ${RPCSRC} .include diff --git a/usr.sbin/bootparamd/bootparamd/bootparamd.c b/usr.sbin/bootparamd/bootparamd/bootparamd.c index 80fbe70..159124e 100644 --- a/usr.sbin/bootparamd/bootparamd/bootparamd.c +++ b/usr.sbin/bootparamd/bootparamd/bootparamd.c @@ -42,8 +42,9 @@ int getthefile __P((char *, char *, char *, int)); int checkhost __P((char *, char *, int)); bp_whoami_res * -bootparamproc_whoami_1(whoami) +bootparamproc_whoami_1_svc(whoami, req) bp_whoami_arg *whoami; +struct svc_req *req; { long haddr; static bp_whoami_res res; @@ -107,8 +108,9 @@ bp_whoami_arg *whoami; bp_getfile_res * - bootparamproc_getfile_1(getfile) + bootparamproc_getfile_1_svc(getfile, req) bp_getfile_arg *getfile; +struct svc_req *req; { char *where, *index(); static bp_getfile_res res; -- cgit v1.1