diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/rresvport.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/rresvport.c b/src/lib/libc/net/rresvport.c index 97a901ae0c..572903bec5 100644 --- a/src/lib/libc/net/rresvport.c +++ b/src/lib/libc/net/rresvport.c  | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | */ | 34 | */ | 
| 35 | 35 | ||
| 36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) | 
| 37 | static char *rcsid = "$OpenBSD: rresvport.c,v 1.1 1999/12/16 21:30:34 deraadt Exp $"; | 37 | static char *rcsid = "$OpenBSD: rresvport.c,v 1.2 1999/12/17 19:08:52 deraadt Exp $"; | 
| 38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ | 
| 39 | 39 | ||
| 40 | #include <sys/param.h> | 40 | #include <sys/param.h> | 
| @@ -82,9 +82,11 @@ rresvport_af(alport, af) | |||
| 82 | case AF_INET: | 82 | case AF_INET: | 
| 83 | sa->sa_len = sizeof(struct sockaddr_in); | 83 | sa->sa_len = sizeof(struct sockaddr_in); | 
| 84 | portp = &((struct sockaddr_in *)&sa)->sin_port; | 84 | portp = &((struct sockaddr_in *)&sa)->sin_port; | 
| 85 | break; | ||
| 85 | case AF_INET6: | 86 | case AF_INET6: | 
| 86 | sa->sa_len = sizeof(struct sockaddr_in6); | 87 | sa->sa_len = sizeof(struct sockaddr_in6); | 
| 87 | portp = &((struct sockaddr_in6 *)&sa)->sin6_port; | 88 | portp = &((struct sockaddr_in6 *)&sa)->sin6_port; | 
| 89 | break; | ||
| 88 | default: | 90 | default: | 
| 89 | return (-1); | 91 | return (-1); | 
| 90 | } | 92 | } | 
