diff options
author | Tomohiro Kusumi <[email protected]> | 2018-03-10 06:47:32 +0900 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-03-09 13:47:32 -0800 |
commit | 6b8655ad3fe070089b690b95d8485e41b3e7e67e (patch) | |
tree | ca4fd02a8cf16797f47cbe61e23e8acf6385f960 /include/sys/zfs_sa.h | |
parent | cf63739191b6cac629d053930a4aea592bca3819 (diff) |
Change functions which return literals to return `const char*`
get_format_prompt_string() and zpool_state_to_name() return
a string literal which is read-only, thus they should return
`const char*`.
zpool_get_prop_string() returns a non-const string after
successful nv-lookup, and returns a string literal otherwise.
Since this function is designed to be used for read-only purpose,
the return type should also be `const char*`.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tomohiro Kusumi <[email protected]>
Closes #7285
Diffstat (limited to 'include/sys/zfs_sa.h')
0 files changed, 0 insertions, 0 deletions