summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bootparamd/bootparamd
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 05:51:51 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 05:51:51 +0000
commit8acbfb4949510965773b81b9e10e781e3a230d79 (patch)
treeb785d640fdedeb4d856473f8bb7377a14a348377 /usr.sbin/bootparamd/bootparamd
parent2005ad145d07fd794088c5b57c42fdb66b21674b (diff)
downloadFreeBSD-src-8acbfb4949510965773b81b9e10e781e3a230d79.zip
FreeBSD-src-8acbfb4949510965773b81b9e10e781e3a230d79.tar.gz
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.
Diffstat (limited to 'usr.sbin/bootparamd/bootparamd')
-rw-r--r--usr.sbin/bootparamd/bootparamd/Makefile6
-rw-r--r--usr.sbin/bootparamd/bootparamd/bootparamd.c6
2 files changed, 7 insertions, 5 deletions
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 <bsd.prog.mk>
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;
OpenPOWER on IntegriCloud