Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Fix pointer assignment in previous commit (test compile work...
details: https://anonhg.NetBSD.org/src/rev/672f3cd5eac7
branches: trunk
changeset: 756038:672f3cd5eac7
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Jul 04 15:44:46 2010 +0000
description:
Fix pointer assignment in previous commit (test compile works better
when you do it with the #defines which actually compile the code
in question).
diffstat:
share/examples/rump/virtual_ip_router/rumprouter.c | 4 ++--
sys/rump/net/rumptest/rumptest_net.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 7de8a32c8957 -r 672f3cd5eac7 share/examples/rump/virtual_ip_router/rumprouter.c
--- a/share/examples/rump/virtual_ip_router/rumprouter.c Sun Jul 04 15:38:27 2010 +0000
+++ b/share/examples/rump/virtual_ip_router/rumprouter.c Sun Jul 04 15:44:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumprouter.c,v 1.3 2010/07/04 15:31:04 pooka Exp $ */
+/* $NetBSD: rumprouter.c,v 1.4 2010/07/04 15:44:46 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -119,7 +119,7 @@
uint8_t m_space[512];
} m_rtmsg;
#define rtm m_rtmsg.m_rtm
- uint8_t *bp = &m_rtmsg.m_space;
+ uint8_t *bp = m_rtmsg.m_space;
struct sockaddr_in sinstore;
int s, rv;
diff -r 7de8a32c8957 -r 672f3cd5eac7 sys/rump/net/rumptest/rumptest_net.c
--- a/sys/rump/net/rumptest/rumptest_net.c Sun Jul 04 15:38:27 2010 +0000
+++ b/sys/rump/net/rumptest/rumptest_net.c Sun Jul 04 15:44:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumptest_net.c,v 1.22 2010/07/04 15:31:04 pooka Exp $ */
+/* $NetBSD: rumptest_net.c,v 1.23 2010/07/04 15:44:47 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -101,7 +101,7 @@
uint8_t m_space[512];
} m_rtmsg;
#define rtm m_rtmsg.m_rtm
- uint8_t *bp = &m_rtmsg.m_space;
+ uint8_t *bp = m_rtmsg.m_space;
int s, rv;
if ((rv = rump_pub_virtif_create(0)) != 0) {
Home |
Main Index |
Thread Index |
Old Index