summaryrefslogtreecommitdiff
path: root/lib/libc/rpc/pmap_getport.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-04-01 07:44:05 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-04-01 07:44:05 +0000
commit46dd7fa28774a43ed962f12dff50a2f623bdfc62 (patch)
treeb9aef01653cce18509f9ef07acab774e1b5b77eb /lib/libc/rpc/pmap_getport.c
parent1f49fb4097cac5eea507a78749b49b3783984392 (diff)
ansify. ok deraadt@ jaredy@
Diffstat (limited to 'lib/libc/rpc/pmap_getport.c')
-rw-r--r--lib/libc/rpc/pmap_getport.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/rpc/pmap_getport.c b/lib/libc/rpc/pmap_getport.c
index be841822fd9..7fc558082f7 100644
--- a/lib/libc/rpc/pmap_getport.c
+++ b/lib/libc/rpc/pmap_getport.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: pmap_getport.c,v 1.8 2005/01/08 19:17:39 krw Exp $";
+static char *rcsid = "$OpenBSD: pmap_getport.c,v 1.9 2005/04/01 07:44:03 otto Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -54,11 +54,8 @@ static struct timeval tottimeout = { 60, 0 };
* Returns 0 if no map exists.
*/
u_short
-pmap_getport(address, program, version, protocol)
- struct sockaddr_in *address;
- u_long program;
- u_long version;
- u_int protocol;
+pmap_getport(struct sockaddr_in *address, u_long program, u_long version,
+ u_int protocol)
{
u_short port = 0;
int sock = -1;