summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-17 19:08:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-17 19:08:53 +0000
commit9279265e09f541b18afd844b8f4de9fbdc19a67f (patch)
treebf538f0feb02150bbd015db446090a6e6df49619 /lib/libc/net
parent6cace1bc4c00ae418fd9b135a0b296d70f5b0d79 (diff)
oops
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/rresvport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/net/rresvport.c b/lib/libc/net/rresvport.c
index 97a901ae0c8..572903bec5a 100644
--- a/lib/libc/net/rresvport.c
+++ b/lib/libc/net/rresvport.c
@@ -34,7 +34,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rresvport.c,v 1.1 1999/12/16 21:30:34 deraadt Exp $";
+static char *rcsid = "$OpenBSD: rresvport.c,v 1.2 1999/12/17 19:08:52 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -82,9 +82,11 @@ rresvport_af(alport, af)
case AF_INET:
sa->sa_len = sizeof(struct sockaddr_in);
portp = &((struct sockaddr_in *)&sa)->sin_port;
+ break;
case AF_INET6:
sa->sa_len = sizeof(struct sockaddr_in6);
portp = &((struct sockaddr_in6 *)&sa)->sin6_port;
+ break;
default:
return (-1);
}