Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Make this compile with options RTSOCK_DEBUG.
details: https://anonhg.NetBSD.org/src/rev/1a19d1000ead
branches: trunk
changeset: 747371:1a19d1000ead
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Sep 12 18:09:25 2009 +0000
description:
Make this compile with options RTSOCK_DEBUG.
Noticed by PR kern/41842, but fixed differently.
diffstat:
sys/net/rtsock.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 278284493ec5 -r 1a19d1000ead sys/net/rtsock.c
--- a/sys/net/rtsock.c Sat Sep 12 18:01:50 2009 +0000
+++ b/sys/net/rtsock.c Sat Sep 12 18:09:25 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock.c,v 1.125 2009/04/02 21:02:06 christos Exp $ */
+/* $NetBSD: rtsock.c,v 1.126 2009/09/12 18:09:25 tsutsui Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.125 2009/04/02 21:02:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.126 2009/09/12 18:09:25 tsutsui Exp $");
#include "opt_inet.h"
#ifdef _KERNEL_OPT
@@ -355,12 +355,13 @@
AF_INET) {
printf("%s: copying out RTAX_IFA %s ",
__func__, inet_ntoa(
- (const struct sockaddr_in *)
- info.rti_info[RTAX_IFA])->sin_addr);
+ ((const struct sockaddr_in *)
+ info.rti_info[RTAX_IFA])->sin_addr)
+ );
printf("for info.rti_info[RTAX_DST] %s "
"ifa_getifa %p ifa_seqno %p\n",
inet_ntoa(
- (const struct sockaddr_in *)
+ ((const struct sockaddr_in *)
info.rti_info[RTAX_DST])->sin_addr),
(void *)rtifa->ifa_getifa,
rtifa->ifa_seqno);
Home |
Main Index |
Thread Index |
Old Index