Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libwrap correct typecast mistake.
details: https://anonhg.NetBSD.org/src/rev/08cc6e384497
branches: trunk
changeset: 504305:08cc6e384497
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Feb 27 04:13:13 2001 +0000
description:
correct typecast mistake.
http://www.openbsd.org/errata.html#libwrap
diffstat:
lib/libwrap/rfc931.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r e0139a002d96 -r 08cc6e384497 lib/libwrap/rfc931.c
--- a/lib/libwrap/rfc931.c Tue Feb 27 03:47:02 2001 +0000
+++ b/lib/libwrap/rfc931.c Tue Feb 27 04:13:13 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rfc931.c,v 1.6 1999/08/31 13:58:58 itojun Exp $ */
+/* $NetBSD: rfc931.c,v 1.7 2001/02/27 04:13:13 itojun Exp $ */
/*
* rfc931() speaks a common subset of the RFC 931, AUTH, TAP, IDENT and RFC
@@ -16,7 +16,7 @@
#if 0
static char sccsid[] = "@(#) rfc931.c 1.10 95/01/02 16:11:34";
#else
-__RCSID("$NetBSD: rfc931.c,v 1.6 1999/08/31 13:58:58 itojun Exp $");
+__RCSID("$NetBSD: rfc931.c,v 1.7 2001/02/27 04:13:13 itojun Exp $");
#endif
#endif
@@ -105,12 +105,12 @@
switch (rmt_sin->sa_family) {
case AF_INET:
salen = sizeof(struct sockaddr_in);
- rmt_portp = &((struct sockaddr_in *)&rmt_sin)->sin_port;
+ rmt_portp = &(((struct sockaddr_in *)rmt_sin)->sin_port);
break;
#ifdef INET6
case AF_INET6:
salen = sizeof(struct sockaddr_in6);
- rmt_portp = &((struct sockaddr_in6 *)&rmt_sin)->sin6_port;
+ rmt_portp = &(((struct sockaddr_in6 *)rmt_sin)->sin6_port);
break;
#endif
default:
@@ -119,11 +119,11 @@
}
switch (our_sin->sa_family) {
case AF_INET:
- our_portp = &((struct sockaddr_in *)&our_sin)->sin_port;
+ our_portp = &(((struct sockaddr_in *)our_sin)->sin_port);
break;
#ifdef INET6
case AF_INET6:
- our_portp = &((struct sockaddr_in6 *)&our_sin)->sin6_port;
+ our_portp = &(((struct sockaddr_in6 *)our_sin)->sin6_port);
break;
#endif
default:
Home |
Main Index |
Thread Index |
Old Index