From 35bbe528d227a3b35a57c60bd37243db8c094008 Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Thu, 26 Feb 2015 14:55:13 -0800 Subject: [PATCH] parser: fix more gcc 5 compilation problems Don't pass an ostream reference into another ostream via <<. Signed-off-by: Steve Beattie Acked-by: Seth Arnold --- parser/af_rule.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/parser/af_rule.cc b/parser/af_rule.cc index dd3fa0e7c..c617c609d 100644 --- a/parser/af_rule.cc +++ b/parser/af_rule.cc @@ -148,11 +148,14 @@ ostream &af_rule::dump_peer(ostream &os) ostream &af_rule::dump(ostream &os) { - os << dump_prefix(os); + dump_prefix(os); os << af_name; - os << dump_local(os); - if (has_peer_conds()) - os << " peer=(" << dump_peer(os) << ")"; + dump_local(os); + if (has_peer_conds()) { + os << " peer=("; + dump_peer(os); + os << ")"; + } os << ",\n"; return os;