diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2019-03-01 09:05:47 -0800 |
---|---|---|
committer | Tadeusz Struk <tadeusz.struk@intel.com> | 2019-03-01 18:44:17 -0800 |
commit | 631cb62a909d1986e5c906ebc34f09cd05cbb84a (patch) | |
tree | bf637a5f9c488bdc2f9874a9194e5d8e67e26cb4 /test | |
parent | 55eba78b399fe470035ac5da18a0768ea3722b71 (diff) | |
download | tpm2-tss-631cb62a909d1986e5c906ebc34f09cd05cbb84a.tar.gz |
test: fix string to 'char *' conversion
Fix warning: ISO C++11 does not allow conversion from string literal to
'char *' [-Wwritable-strings]
In test/fuzz/main-sapi.cpp:37
.socket_address = HOSTNAME_DEFAULT,
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/test-options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/test-options.h b/test/integration/test-options.h index a67bbd57..dff76cf7 100644 --- a/test/integration/test-options.h +++ b/test/integration/test-options.h @@ -36,8 +36,8 @@ typedef enum { typedef struct { TCTI_TYPE tcti_type; - char *device_file; - char *socket_address; + const char *device_file; + const char *socket_address; uint16_t socket_port; } test_opts_t; |