Skip to content

Commit

Permalink
Windows: constify zfs_strip_partition(), zfs_strip_path
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman authored and andrewc12 committed Sep 23, 2022
1 parent 051e985 commit 6917eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/libzutil/os/windows/zutil_device_path_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* Note: The caller must free the returned string.
*/
char *
zfs_strip_partition(char *dev)
zfs_strip_partition(const char *dev)
{
unsigned int disk, slice;
char *partless;
Expand Down Expand Up @@ -119,8 +119,8 @@ zfs_append_partition(char *path, size_t max_len)
* On FreeBSD we only want to remove "/dev/" from the beginning of
* paths if present.
*/
char *
zfs_strip_path(char *path)
const char *
zfs_strip_path(const char *path)
{
char *r;
r = strrchr(path, '/');
Expand Down

0 comments on commit 6917eba

Please sign in to comment.