Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Dec 19, 2016
1 parent 52ab388 commit 36b46fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/socks_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,8 @@ namespace sim
, _1, _2));
}

int socks_connection::format_response(address const& addr, int port
, int response)
int socks_connection::format_response(address const& addr, int const port
, int const response)
{
int i = 0;
if (m_version == 5)
Expand All @@ -697,7 +697,7 @@ namespace sim
i += int(b.size());
}

m_in_buffer[i++] = port >> 8;
m_in_buffer[i++] = (port >> 8) & 0xff;
m_in_buffer[i++] = port & 0xff;
}
else
Expand All @@ -707,7 +707,7 @@ namespace sim

assert(addr.is_v4());

m_in_buffer[i++] = port >> 8;
m_in_buffer[i++] = (port >> 8) & 0xff;
m_in_buffer[i++] = port & 0xff;

address_v4::bytes_type b = addr.to_v4().to_bytes();
Expand Down

0 comments on commit 36b46fc

Please sign in to comment.