aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_seq_numbers.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-06 21:07:25 -0400
committerJack Lloyd <[email protected]>2017-10-06 21:07:25 -0400
commitaff93b716eda9d10be9f02e4b436b672510ab179 (patch)
tree12f992aac7cc20519cb3f643f793f1bb133d8ab0 /src/lib/tls/tls_seq_numbers.h
parent1c539719f170df9c8acc6977da3c331c7e78cbf2 (diff)
Address various GCC warnings
Things like -Wconversion and -Wuseless-cast that are noisy and not on by default.
Diffstat (limited to 'src/lib/tls/tls_seq_numbers.h')
-rw-r--r--src/lib/tls/tls_seq_numbers.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/tls/tls_seq_numbers.h b/src/lib/tls/tls_seq_numbers.h
index 817b5b6ed..1be280453 100644
--- a/src/lib/tls/tls_seq_numbers.h
+++ b/src/lib/tls/tls_seq_numbers.h
@@ -36,8 +36,8 @@ class Connection_Sequence_Numbers
class Stream_Sequence_Numbers final : public Connection_Sequence_Numbers
{
public:
- void new_read_cipher_state() override { m_read_seq_no = 0; m_read_epoch += 1; }
- void new_write_cipher_state() override { m_write_seq_no = 0; m_write_epoch += 1; }
+ void new_read_cipher_state() override { m_read_seq_no = 0; m_read_epoch++; }
+ void new_write_cipher_state() override { m_write_seq_no = 0; m_write_epoch++; }
uint16_t current_read_epoch() const override { return m_read_epoch; }
uint16_t current_write_epoch() const override { return m_write_epoch; }
@@ -59,11 +59,11 @@ class Datagram_Sequence_Numbers final : public Connection_Sequence_Numbers
public:
Datagram_Sequence_Numbers() { m_write_seqs[0] = 0; }
- void new_read_cipher_state() override { m_read_epoch += 1; }
+ void new_read_cipher_state() override { m_read_epoch++; }
void new_write_cipher_state() override
{
- m_write_epoch += 1;
+ m_write_epoch++;
m_write_seqs[m_write_epoch] = 0;
}