diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 13:48:02 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:54 +0100 |
commit | 9cfce3cf6b531b01296dbebc1cc7844c1e049478 (patch) | |
tree | b8d5cba35bce6ed5952543c2d41ed624f5ea295f /unittest/test_C_API.cpp | |
parent | aa9baa019bb53d83625e0a296efc744ef351fd45 (diff) | |
download | libnitrokey-9cfce3cf6b531b01296dbebc1cc7844c1e049478.tar.gz libnitrokey-9cfce3cf6b531b01296dbebc1cc7844c1e049478.tar.bz2 |
Fix compilation warnings
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_C_API.cpp')
-rw-r--r-- | unittest/test_C_API.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_C_API.cpp b/unittest/test_C_API.cpp index 37d3c7f..160145b 100644 --- a/unittest/test_C_API.cpp +++ b/unittest/test_C_API.cpp @@ -24,8 +24,8 @@ TEST_CASE("Check retry count", "[BASIC]") { } TEST_CASE("Check long strings", "[STANDARD]") { - char* longPin = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; - char *pin = "123123123"; + const char* longPin = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const char* pin = "123123123"; auto result = NK_change_user_PIN(longPin, pin); REQUIRE(result == TOO_LONG_STRING); result = NK_change_user_PIN(pin, longPin); |