Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net KNF
details: https://anonhg.NetBSD.org/src/rev/4d32d0252073
branches: trunk
changeset: 812415:4d32d0252073
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Dec 14 03:49:54 2015 +0000
description:
KNF
diffstat:
lib/libc/net/inet6_scopeid.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 986156b243fd -r 4d32d0252073 lib/libc/net/inet6_scopeid.c
--- a/lib/libc/net/inet6_scopeid.c Mon Dec 14 03:15:10 2015 +0000
+++ b/lib/libc/net/inet6_scopeid.c Mon Dec 14 03:49:54 2015 +0000
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: inet6_scopeid.c,v 1.2 2013/10/19 15:47:02 christos Exp $");
+__RCSID("$NetBSD: inet6_scopeid.c,v 1.3 2015/12/14 03:49:54 ozaki-r Exp $");
#include <sys/endian.h>
#include <string.h>
@@ -71,7 +71,7 @@
(flags & INET6_IS_ADDR_MC_LINKLOCAL)) ||
(IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr) &&
(flags & INET6_IS_ADDR_SITELOCAL))) {
- uint16_t scope = htons(sin6->sin6_scope_id);
+ uint16_t scope = htons(sin6->sin6_scope_id);
memcpy(&sin6->sin6_addr.s6_addr[2], &scope, sizeof(scope));
sin6->sin6_scope_id = 0;
}
Home |
Main Index |
Thread Index |
Old Index