diff options
author | René Korthaus <[email protected]> | 2016-02-18 15:54:37 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-02-18 16:13:55 +0100 |
commit | 3a8dcbed75892ee63d73e9f9310f811e6267e504 (patch) | |
tree | 7553c5eb2936898d65b89b2407d016306d257dd1 /src/lib/tls | |
parent | 0c76098cbaa8002fb89756d6fa2b02359f3f5f88 (diff) |
Fix remaining Wshadow warnings and enable on gcc and clang
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/msg_certificate.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/tls/msg_certificate.cpp b/src/lib/tls/msg_certificate.cpp index f0ccc5328..5be9379bd 100644 --- a/src/lib/tls/msg_certificate.cpp +++ b/src/lib/tls/msg_certificate.cpp @@ -71,8 +71,10 @@ std::vector<byte> Certificate::serialize() const { std::vector<byte> raw_cert = m_certs[i].BER_encode(); const size_t cert_size = raw_cert.size(); - for(size_t i = 0; i != 3; ++i) - buf.push_back(get_byte<u32bit>(i+1, cert_size)); + for(size_t j = 0; j != 3; ++j) + { + buf.push_back(get_byte<u32bit>(j+1, cert_size)); + } buf += raw_cert; } |