aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2019-03-01 09:05:47 -0800
committerTadeusz Struk <tadeusz.struk@intel.com>2019-03-01 18:44:17 -0800
commit631cb62a909d1986e5c906ebc34f09cd05cbb84a (patch)
treebf637a5f9c488bdc2f9874a9194e5d8e67e26cb4 /test
parent55eba78b399fe470035ac5da18a0768ea3722b71 (diff)
downloadtpm2-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.h4
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;