aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zfs_vnops.h
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2018-03-10 06:47:32 +0900
committerBrian Behlendorf <[email protected]>2018-03-09 13:47:32 -0800
commit6b8655ad3fe070089b690b95d8485e41b3e7e67e (patch)
treeca4fd02a8cf16797f47cbe61e23e8acf6385f960 /include/sys/zfs_vnops.h
parentcf63739191b6cac629d053930a4aea592bca3819 (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_vnops.h')
0 files changed, 0 insertions, 0 deletions