diff options
author | наб <[email protected]> | 2022-05-03 19:56:12 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-16 15:56:53 -0700 |
commit | 5ac80603bdafef9317b3a815137181667cef8947 (patch) | |
tree | d782083a8dd9a24ea0afd4dd045a6741808ac032 /include | |
parent | ca3b105cd99198e59fa6f0b74943319ad7eedcde (diff) |
libzfs: constify zfs_strip_partition(), zfs_strip_path()
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13413
Diffstat (limited to 'include')
-rw-r--r-- | include/libzutil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libzutil.h b/include/libzutil.h index c0a660ea7..d0d5632c0 100644 --- a/include/libzutil.h +++ b/include/libzutil.h @@ -97,8 +97,8 @@ _LIBZUTIL_H int zfs_append_partition(char *path, size_t max_len); _LIBZUTIL_H int zfs_resolve_shortname(const char *name, char *path, size_t pathlen); -_LIBZUTIL_H char *zfs_strip_partition(char *); -_LIBZUTIL_H char *zfs_strip_path(char *); +_LIBZUTIL_H char *zfs_strip_partition(const char *); +_LIBZUTIL_H const char *zfs_strip_path(const char *); _LIBZUTIL_H int zfs_strcmp_pathname(const char *, const char *, int); |