zfs/lib
Kyle Evans b197457cd6
libzfs: const'ify path argument to zfs_path_to_zhandle
zfs_path_to_zhandle has no need to mutate the path argument,
most notably:

- zfs_open takes path as const
- getextmntent takes path as const
- fprintf most clearly doesn't need to mutate it

It's hard to foresee any reason that libzfs could conceivably
want to mutate it in the future, either, so const'ify it.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Closes #10605
2020-07-22 11:14:20 -07:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libshare Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
libspl Fixing gang ABD child removal race condition 2020-07-14 11:04:35 -07:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libzfs libzfs: const'ify path argument to zfs_path_to_zhandle 2020-07-22 11:14:20 -07:00
libzfs_core Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libzpool Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libzutil FreeBSD: zfs commands backward compatibility 2020-07-15 21:32:50 -07:00
Makefile.am Clean up lib dependencies 2020-07-10 14:26:00 -07:00