mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-28 17:39:23 +03:00
Throw const on some strings
In C, const indicates to the reader that mutation will not occur. It can also serve as a hint about ownership. Add const in a few places where it makes sense. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org> Closes #10997
This commit is contained in:
@@ -1327,7 +1327,7 @@ zfsctl_umount_snapshots(vfs_t *vfsp, int fflags, cred_t *cr)
|
||||
}
|
||||
|
||||
int
|
||||
zfsctl_snapshot_unmount(char *snapname, int flags __unused)
|
||||
zfsctl_snapshot_unmount(const char *snapname, int flags __unused)
|
||||
{
|
||||
vfs_t *vfsp = NULL;
|
||||
zfsvfs_t *zfsvfs = NULL;
|
||||
|
||||
Reference in New Issue
Block a user