diff options
author | Tony Hutter <[email protected]> | 2019-01-23 11:17:52 -0800 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2019-02-22 09:47:34 -0800 |
commit | 2254b2bbbe17a1ad34b016d1605fea49c01461cf (patch) | |
tree | c2da36bd40fa01626bdaa117653503b7a103e9c7 /cmd | |
parent | 5c4ec382a76c7c0d6b218fcab5a1c2e035012158 (diff) |
GCC 9.0: Fix ztest "directive argument is not a nul-terminated string"
GCC 9.0 is complaining because we're trying to print strings that
are defined like this:
.zo_pool = { 'z', 't', 'e', 's', 't', '\0' },
Fix them by making them actual strings.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #8330
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ztest/ztest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 5868d60af..0ef6499d2 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -171,8 +171,8 @@ typedef struct ztest_shared_opts { } ztest_shared_opts_t; static const ztest_shared_opts_t ztest_opts_defaults = { - .zo_pool = { 'z', 't', 'e', 's', 't', '\0' }, - .zo_dir = { '/', 't', 'm', 'p', '\0' }, + .zo_pool = "ztest", + .zo_dir = "/tmp", .zo_alt_ztest = { '\0' }, .zo_alt_libpath = { '\0' }, .zo_vdevs = 5, |