32 lines
1,020 B
Text
32 lines
1,020 B
Text
$NetBSD: patch-ad,v 1.4 2014/04/23 20:17:32 asau Exp $
|
|
|
|
--- src/lat_rpc.c.orig Sat Aug 1 05:55:18 1998
|
|
+++ src/lat_rpc.c Thu Jul 5 13:18:49 2001
|
|
@@ -132,7 +132,9 @@
|
|
}
|
|
|
|
static void xact_prog_1();
|
|
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
|
|
bool_t pmap_set(u_long prognum, u_long versnum, u_long protocol, u_short port);
|
|
+#endif
|
|
bool_t pmap_unset(u_long prognum, u_long versnum);
|
|
|
|
void
|
|
@@ -203,7 +205,7 @@
|
|
return;
|
|
}
|
|
bzero((char *)&argument, sizeof(argument));
|
|
- if (!svc_getargs(transp, (void *)(xdr_argument)(), (char*)&argument)) {
|
|
+ if (!svc_getargs(transp, xdr_argument, (char*)&argument)) {
|
|
svcerr_decode(transp);
|
|
return;
|
|
}
|
|
@@ -211,7 +213,7 @@
|
|
if (result != NULL && !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) {
|
|
svcerr_systemerr(transp);
|
|
}
|
|
- if (!svc_freeargs(transp, (void*)(xdr_argument)(), (char*)&argument)) {
|
|
+ if (!svc_freeargs(transp, xdr_argument, (char*)&argument)) {
|
|
fprintf(stderr, "unable to free arguments");
|
|
exit(1);
|
|
}
|