diff options
author | Simon Warta <[email protected]> | 2015-06-29 13:11:23 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-30 10:38:23 +0200 |
commit | 8668ce8753b10e944bdc72b6e66d752759c7e710 (patch) | |
tree | 787e9829c871748b34594d35f3a5e6569ccdbb31 /src/tests/unit_tls.cpp | |
parent | b90187419f64b6d38d19c888985d58f902336677 (diff) |
tests: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r-- | src/tests/unit_tls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index edc5e913d..8eb2d1a96 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -232,7 +232,7 @@ size_t basic_test_handshake(RandomNumberGenerator& rng, try { - server.received_data(&input[0], input.size()); + server.received_data(input.data(), input.size()); } catch(std::exception& e) { @@ -245,7 +245,7 @@ size_t basic_test_handshake(RandomNumberGenerator& rng, try { - client.received_data(&input[0], input.size()); + client.received_data(input.data(), input.size()); } catch(std::exception& e) { |