aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/rpcinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/rpcinfo.c')
-rw-r--r--sunrpc/rpcinfo.c37
1 files changed, 9 insertions, 28 deletions
diff --git a/sunrpc/rpcinfo.c b/sunrpc/rpcinfo.c
index e490a7e..2b55eb4 100644
--- a/sunrpc/rpcinfo.c
+++ b/sunrpc/rpcinfo.c
@@ -201,10 +201,7 @@ main (int argc, char **argv)
}
static void
-udpping (portnum, argc, argv)
- u_short portnum;
- int argc;
- char **argv;
+udpping (u_short portnum, int argc, char **argv)
{
struct timeval to;
struct sockaddr_in addr;
@@ -356,10 +353,7 @@ udpping (portnum, argc, argv)
}
static void
-tcpping (portnum, argc, argv)
- u_short portnum;
- int argc;
- char **argv;
+tcpping (u_short portnum, int argc, char **argv)
{
struct timeval to;
struct sockaddr_in addr;
@@ -505,10 +499,7 @@ tcpping (portnum, argc, argv)
* a good error message.
*/
static int
-pstatus (client, prognum, vers)
- register CLIENT *client;
- u_long prognum;
- u_long vers;
+pstatus (register CLIENT *client, u_long prognum, u_long vers)
{
struct rpc_err rpcerr;
@@ -527,9 +518,7 @@ pstatus (client, prognum, vers)
}
static void
-pmapdump (argc, argv)
- int argc;
- char **argv;
+pmapdump (int argc, char **argv)
{
struct sockaddr_in server_addr;
register struct hostent *hp;
@@ -624,9 +613,7 @@ reply_proc (res, who)
}
static void
-brdcst (argc, argv)
- int argc;
- char **argv;
+brdcst (int argc, char **argv)
{
enum clnt_stat rpc_stat;
u_long prognum, vers;
@@ -651,9 +638,7 @@ brdcst (argc, argv)
}
static void
-deletereg (argc, argv)
- int argc;
- char **argv;
+deletereg (int argc, char **argv)
{
u_long prog_num, version_num;
@@ -700,8 +685,7 @@ print_version (void)
}
static u_long
-getprognum (arg)
- char *arg;
+getprognum (char *arg)
{
register struct rpcent *rpc;
register u_long prognum;
@@ -725,8 +709,7 @@ getprognum (arg)
}
static u_long
-getvers (arg)
- char *arg;
+getvers (char *arg)
{
register u_long vers;
@@ -735,9 +718,7 @@ getvers (arg)
}
static void
-get_inet_address (addr, host)
- struct sockaddr_in *addr;
- char *host;
+get_inet_address (struct sockaddr_in *addr, char *host)
{
register struct hostent *hp;