aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_tls.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-29 13:11:23 +0200
committerSimon Warta <[email protected]>2015-06-30 10:38:23 +0200
commit8668ce8753b10e944bdc72b6e66d752759c7e710 (patch)
tree787e9829c871748b34594d35f3a5e6569ccdbb31 /src/tests/unit_tls.cpp
parentb90187419f64b6d38d19c888985d58f902336677 (diff)
tests: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r--src/tests/unit_tls.cpp4
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)
{