diff --git a/test/transport/iostream/connection.cpp b/test/transport/iostream/connection.cpp index 8edad31aa8..d2d125d999 100644 --- a/test/transport/iostream/connection.cpp +++ b/test/transport/iostream/connection.cpp @@ -135,9 +135,9 @@ struct stub_con : public iostream_con { ); } - void handle_indef(websocketpp::lib::error_code const & e, size_t read) { + void handle_indef(websocketpp::lib::error_code const & e, size_t amt_read) { ec = e; - indef_read_total += read; + indef_read_total += amt_read; indef_read(); }