Commit 242cb681 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] a trivial cleanup: remove unnecessary cast.

the orignal code was not good in that
- it used C-style cast
- the cast wasn't necessary in the first place

quite trivial, no behavior change, compile ok, so committing directly.
parent 3ffa099e
......@@ -110,7 +110,7 @@ TCPServer::operator()(error_code ec, size_t length) {
/// Now read the message itself. (This is done in a different scope
/// to allow inline variable declarations.)
InputBuffer dnsbuffer((const void *) data_.get(), length);
InputBuffer dnsbuffer(data_.get(), length);
uint16_t msglen = dnsbuffer.readUint16();
async_read(*socket_, asio::buffer(data_.get(), msglen), *this);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment