diff options
author | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:34:25 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:34:25 +0000 |
commit | fa585019a79ebcb4e0202b1c33f87ff1c5c9ce1c (patch) | |
tree | 28fc9a13eaab935e4de055b561b333d67387a934 /openbsd-compat/rresvport.c | |
parent | 04942aa41fa94ec6f2c3ce1d348f600f31bb7c78 (diff) | |
parent | 3e2e0ac10674d77618c4c7339e18b83ced247492 (diff) |
import openssh-4.3p2-gsskex-20060223.patch
Diffstat (limited to 'openbsd-compat/rresvport.c')
-rw-r--r-- | openbsd-compat/rresvport.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/openbsd-compat/rresvport.c b/openbsd-compat/rresvport.c index 75167065c..71cf6e6eb 100644 --- a/openbsd-compat/rresvport.c +++ b/openbsd-compat/rresvport.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* OPENBSD ORIGINAL: lib/libc/net/rresvport.c */ | 1 | /* $OpenBSD: rresvport.c,v 1.9 2005/11/10 10:00:17 espie Exp $ */ |
2 | |||
3 | /* | 2 | /* |
4 | * Copyright (c) 1995, 1996, 1998 Theo de Raadt. All rights reserved. | 3 | * Copyright (c) 1995, 1996, 1998 Theo de Raadt. All rights reserved. |
5 | * Copyright (c) 1983, 1993, 1994 | 4 | * Copyright (c) 1983, 1993, 1994 |
@@ -30,26 +29,21 @@ | |||
30 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
31 | */ | 30 | */ |
32 | 31 | ||
32 | /* OPENBSD ORIGINAL: lib/libc/net/rresvport.c */ | ||
33 | |||
33 | #include "includes.h" | 34 | #include "includes.h" |
34 | 35 | ||
35 | #ifndef HAVE_RRESVPORT_AF | 36 | #ifndef HAVE_RRESVPORT_AF |
36 | 37 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | ||
38 | static char *rcsid = "$OpenBSD: rresvport.c,v 1.6 2003/06/03 02:11:35 deraadt Exp $"; | ||
39 | #endif /* LIBC_SCCS and not lint */ | ||
40 | |||
41 | #include "includes.h" | ||
42 | |||
43 | #if 0 | 38 | #if 0 |
44 | int | 39 | int |
45 | rresvport(alport) | 40 | rresvport(int *alport) |
46 | int *alport; | ||
47 | { | 41 | { |
48 | return rresvport_af(alport, AF_INET); | 42 | return rresvport_af(alport, AF_INET); |
49 | } | 43 | } |
50 | #endif | 44 | #endif |
51 | 45 | ||
52 | int | 46 | int |
53 | rresvport_af(int *alport, sa_family_t af) | 47 | rresvport_af(int *alport, sa_family_t af) |
54 | { | 48 | { |
55 | struct sockaddr_storage ss; | 49 | struct sockaddr_storage ss; |