Navigation Menu

Skip to content

Commit

Permalink
Don't call things 'max', a=bustage
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Jun 11, 2017
1 parent 8cb4c93 commit bba3e3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gtests/ssl_gtest/tls_agent.cc
Expand Up @@ -918,10 +918,10 @@ void TlsAgent::SendBuffer(const DataBuffer& buf) {
}
}

void TlsAgent::ReadBytes(size_t max) {
uint8_t block[1024];
void TlsAgent::ReadBytes(size_t amount) {
uint8_t block[amount];

int32_t rv = PR_Read(ssl_fd(), block, (std::min)(max, sizeof(block)));
int32_t rv = PR_Read(ssl_fd(), block, sizeof(block));
LOGV("ReadBytes " << rv);
int32_t err;

Expand Down

0 comments on commit bba3e3a

Please sign in to comment.