summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-17 19:20:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-17 19:20:31 +0000
commit5edb273dc857487a93a34db25bf3b7d2b6463665 (patch)
tree448670404986f09a27ed0f6f3b00ef4225980777 /lib/libc/net
parent9279265e09f541b18afd844b8f4de9fbdc19a67f (diff)
nice error return; markus
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/rresvport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/rresvport.c b/lib/libc/net/rresvport.c
index 572903bec5a..e544424cee4 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.2 1999/12/17 19:08:52 deraadt Exp $";
+static char *rcsid = "$OpenBSD: rresvport.c,v 1.3 1999/12/17 19:20:30 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -88,6 +88,7 @@ rresvport_af(alport, af)
portp = &((struct sockaddr_in6 *)&sa)->sin6_port;
break;
default:
+ errno = EPFNOSUPPORT;
return (-1);
}
sa->sa_family = af;