summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/rresvport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/rresvport.c')
-rw-r--r--src/lib/libc/net/rresvport.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libc/net/rresvport.c b/src/lib/libc/net/rresvport.c
index 6e4698e3be..eee872898b 100644
--- a/src/lib/libc/net/rresvport.c
+++ b/src/lib/libc/net/rresvport.c
@@ -29,7 +29,7 @@
29 */ 29 */
30 30
31#if defined(LIBC_SCCS) && !defined(lint) 31#if defined(LIBC_SCCS) && !defined(lint)
32static char *rcsid = "$OpenBSD: rresvport.c,v 1.6 2003/06/03 02:11:35 deraadt Exp $"; 32static char *rcsid = "$OpenBSD: rresvport.c,v 1.7 2005/03/25 13:24:12 otto Exp $";
33#endif /* LIBC_SCCS and not lint */ 33#endif /* LIBC_SCCS and not lint */
34 34
35#include <sys/param.h> 35#include <sys/param.h>
@@ -53,17 +53,14 @@ static char *rcsid = "$OpenBSD: rresvport.c,v 1.6 2003/06/03 02:11:35 deraadt Ex
53#include <netgroup.h> 53#include <netgroup.h>
54 54
55int 55int
56rresvport(alport) 56rresvport(int *alport)
57 int *alport;
58{ 57{
59 return rresvport_af(alport, AF_INET); 58 return rresvport_af(alport, AF_INET);
60} 59}
61 60
62 61
63int 62int
64rresvport_af(alport, af) 63rresvport_af(int *alport, int af)
65 int *alport;
66 int af;
67{ 64{
68 struct sockaddr_storage ss; 65 struct sockaddr_storage ss;
69 struct sockaddr *sa; 66 struct sockaddr *sa;