summaryrefslogtreecommitdiff
path: root/benchmarks/lmbench/patches/patch-ad
blob: 7ba1570e59608e033af70bf3d96e6bb446087c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-ad,v 1.3 2009/07/09 20:26:11 hasso 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(__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);
 	}