summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-22 09:22:15 +0000
committerobrien <obrien@FreeBSD.org>2002-03-22 09:22:15 +0000
commite2881f49cc545371650e022bf57db9fee6d9f8c9 (patch)
tree940c5b6971ca7a1e0ccd4772f07ad6694c595c70 /lib/libc/rpc
parent700cd85b2e27d1f9b06fa6fea221100cc8d47e6f (diff)
downloadFreeBSD-src-e2881f49cc545371650e022bf57db9fee6d9f8c9.zip
FreeBSD-src-e2881f49cc545371650e022bf57db9fee6d9f8c9.tar.gz
Remove multi-line __P() usage.
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/clnt_dg.c4
-rw-r--r--lib/libc/rpc/clnt_raw.c4
-rw-r--r--lib/libc/rpc/clnt_vc.c4
-rw-r--r--lib/libc/rpc/rpc_com.h5
-rw-r--r--lib/libc/rpc/rpc_soc.c4
-rw-r--r--lib/libc/rpc/rpcb_clnt.c9
-rw-r--r--lib/libc/rpc/svc.c4
-rw-r--r--lib/libc/rpc/svc_vc.c6
8 files changed, 18 insertions, 22 deletions
diff --git a/lib/libc/rpc/clnt_dg.c b/lib/libc/rpc/clnt_dg.c
index fdc9c87..6ea9756 100644
--- a/lib/libc/rpc/clnt_dg.c
+++ b/lib/libc/rpc/clnt_dg.c
@@ -69,8 +69,8 @@ static char sccsid[] = "@(#)clnt_dg.c 1.19 89/03/16 Copyr 1988 Sun Micro";
static struct clnt_ops *clnt_dg_ops(void);
static bool_t time_not_ok(struct timeval *);
-static enum clnt_stat clnt_dg_call __P((CLIENT *, rpcproc_t, xdrproc_t, caddr_t,
- xdrproc_t, caddr_t, struct timeval));
+static enum clnt_stat clnt_dg_call(CLIENT *, rpcproc_t, xdrproc_t, caddr_t,
+ xdrproc_t, caddr_t, struct timeval);
static void clnt_dg_geterr(CLIENT *, struct rpc_err *);
static bool_t clnt_dg_freeres(CLIENT *, xdrproc_t, caddr_t);
static void clnt_dg_abort(CLIENT *);
diff --git a/lib/libc/rpc/clnt_raw.c b/lib/libc/rpc/clnt_raw.c
index 1492e48..d37da5d 100644
--- a/lib/libc/rpc/clnt_raw.c
+++ b/lib/libc/rpc/clnt_raw.c
@@ -76,8 +76,8 @@ static struct clntraw_private {
u_int mcnt;
} *clntraw_private;
-static enum clnt_stat clnt_raw_call __P((CLIENT *, rpcproc_t, xdrproc_t,
- caddr_t, xdrproc_t, caddr_t, struct timeval));
+static enum clnt_stat clnt_raw_call(CLIENT *, rpcproc_t, xdrproc_t, caddr_t,
+ xdrproc_t, caddr_t, struct timeval);
static void clnt_raw_geterr(CLIENT *, struct rpc_err *);
static bool_t clnt_raw_freeres(CLIENT *, xdrproc_t, caddr_t);
static void clnt_raw_abort(CLIENT *);
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c
index 27f14d9..4e9fd4f 100644
--- a/lib/libc/rpc/clnt_vc.c
+++ b/lib/libc/rpc/clnt_vc.c
@@ -87,8 +87,8 @@ struct cmessage {
struct cmsgcred cmcred;
};
-static enum clnt_stat clnt_vc_call __P((CLIENT *, rpcproc_t, xdrproc_t, caddr_t,
- xdrproc_t, caddr_t, struct timeval));
+static enum clnt_stat clnt_vc_call(CLIENT *, rpcproc_t, xdrproc_t, caddr_t,
+ xdrproc_t, caddr_t, struct timeval);
static void clnt_vc_geterr(CLIENT *, struct rpc_err *);
static bool_t clnt_vc_freeres(CLIENT *, xdrproc_t, caddr_t);
static void clnt_vc_abort(CLIENT *);
diff --git a/lib/libc/rpc/rpc_com.h b/lib/libc/rpc/rpc_com.h
index a52332d..b04f110 100644
--- a/lib/libc/rpc/rpc_com.h
+++ b/lib/libc/rpc/rpc_com.h
@@ -73,9 +73,8 @@ int __rpc_socktype2seman(int);
void *rpc_nullproc(CLIENT *);
int __rpc_sockisbound(int);
-struct netbuf *__rpcb_findaddr __P((rpcprog_t, rpcvers_t,
- const struct netconfig *,
- const char *, CLIENT **));
+struct netbuf *__rpcb_findaddr(rpcprog_t, rpcvers_t, const struct netconfig *,
+ const char *, CLIENT **);
bool_t __rpc_control(int,void *);
char *_get_next_token(char *, int);
diff --git a/lib/libc/rpc/rpc_soc.c b/lib/libc/rpc/rpc_soc.c
index 9618de1..8df0529 100644
--- a/lib/libc/rpc/rpc_soc.c
+++ b/lib/libc/rpc/rpc_soc.c
@@ -78,8 +78,8 @@ static char sccsid[] = "@(#)rpc_soc.c 1.41 89/05/02 Copyr 1988 Sun Micro";
extern mutex_t rpcsoc_lock;
-static CLIENT *clnt_com_create __P((struct sockaddr_in *, rpcprog_t, rpcvers_t,
- int *, u_int, u_int, char *));
+static CLIENT *clnt_com_create(struct sockaddr_in *, rpcprog_t, rpcvers_t,
+ int *, u_int, u_int, char *);
static SVCXPRT *svc_com_create(int, u_int, u_int, char *);
static bool_t rpc_wrap_bcast(char *, struct netbuf *, struct netconfig *);
diff --git a/lib/libc/rpc/rpcb_clnt.c b/lib/libc/rpc/rpcb_clnt.c
index 156cbe8..416ab22 100644
--- a/lib/libc/rpc/rpcb_clnt.c
+++ b/lib/libc/rpc/rpcb_clnt.c
@@ -102,13 +102,10 @@ extern int __rpc_lowvers;
static struct address_cache *check_cache(const char *, const char *);
static void delete_cache(struct netbuf *);
-static void add_cache __P((const char *, const char *, struct netbuf *,
- char *));
-static CLIENT *getclnthandle __P((const char *, const struct netconfig *,
- char **));
+static void add_cache(const char *, const char *, struct netbuf *, char *);
+static CLIENT *getclnthandle(const char *, const struct netconfig *, char **);
static CLIENT *local_rpcb(void);
-static struct netbuf *got_entry __P((rpcb_entry_list_ptr,
- const struct netconfig *));
+static struct netbuf *got_entry(rpcb_entry_list_ptr, const struct netconfig *);
/*
* This routine adjusts the timeout used for calls to the remote rpcbind.
diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c
index c201c0c..5f131b2 100644
--- a/lib/libc/rpc/svc.c
+++ b/lib/libc/rpc/svc.c
@@ -88,8 +88,8 @@ static struct svc_callout {
extern rwlock_t svc_lock;
extern rwlock_t svc_fd_lock;
-static struct svc_callout *svc_find __P((rpcprog_t, rpcvers_t,
- struct svc_callout **, char *));
+static struct svc_callout *svc_find(rpcprog_t, rpcvers_t,
+ struct svc_callout **, char *);
/* *************** SVCXPRT related stuff **************** */
diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c
index 731f5c7..8fea82e 100644
--- a/lib/libc/rpc/svc_vc.c
+++ b/lib/libc/rpc/svc_vc.c
@@ -613,11 +613,11 @@ svc_vc_rendezvous_ops(xprt)
ops.xp_recv = rendezvous_request;
ops.xp_stat = rendezvous_stat;
ops.xp_getargs =
- (bool_t (*) __P((SVCXPRT *, xdrproc_t, caddr_t)))abort;
+ (bool_t (*)(SVCXPRT *, xdrproc_t, caddr_t))abort;
ops.xp_reply =
- (bool_t (*) __P((SVCXPRT *, struct rpc_msg *)))abort;
+ (bool_t (*)(SVCXPRT *, struct rpc_msg *))abort;
ops.xp_freeargs =
- (bool_t (*) __P((SVCXPRT *, xdrproc_t, caddr_t)))abort,
+ (bool_t (*)(SVCXPRT *, xdrproc_t, caddr_t))abort,
ops.xp_destroy = svc_vc_destroy;
ops2.xp_control = svc_vc_control;
}
OpenPOWER on IntegriCloud