From 30acd1343ade4d887927c72d4372e23d192ca197 Mon Sep 17 00:00:00 2001 From: subtly Date: Tue, 28 Apr 2015 14:18:40 +0100 Subject: [PATCH] Windows keyword error for _inline. --- libp2p/Common.cpp | 4 ++-- libp2p/Common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/Common.cpp b/libp2p/Common.cpp index 192dc9c4c..e2ae30255 100644 --- a/libp2p/Common.cpp +++ b/libp2p/Common.cpp @@ -144,9 +144,9 @@ std::string p2p::reasonOf(DisconnectReason _r) } } -void NodeIPEndpoint::streamRLP(RLPStream& _s, RLPAppend _inline) const +void NodeIPEndpoint::streamRLP(RLPStream& _s, RLPAppend _append) const { - if (_inline == StreamList) + if (_append == StreamList) _s.appendList(3); if (address.is_v4()) _s << bytesConstRef(&address.to_v4().to_bytes()[0], 4); diff --git a/libp2p/Common.h b/libp2p/Common.h index 0a6867599..04faf0f24 100644 --- a/libp2p/Common.h +++ b/libp2p/Common.h @@ -186,7 +186,7 @@ struct NodeIPEndpoint bool isAllowed() const { return NodeIPEndpoint::test_allowLocal ? !address.is_unspecified() : isPublicAddress(address); } - void streamRLP(RLPStream& _s, RLPAppend _inline = StreamList) const; + void streamRLP(RLPStream& _s, RLPAppend _append = StreamList) const; void interpretRLP(RLP const& _r); };