Minor, constify

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-07-06 03:14:05 +02:00
parent db840bdc19
commit d0c5d7be5b
+3 -3
View File
@@ -41,7 +41,7 @@
* and regular filesystems that can be safely unmounted before we do
* swapoff, and remount / as read-only, respectively.
*/
static int is_protected(char *dir)
static int is_protected(const char *dir)
{
size_t i;
char *protected_mnts[] = {
@@ -112,7 +112,7 @@ static int unmount(const char *target)
void unmount_tmpfs(void)
{
struct mntent *mnt;
const struct mntent *mnt;
FILE *fp = NULL;
while ((mnt = iterator("/proc/mounts", &fp))) {
@@ -123,7 +123,7 @@ void unmount_tmpfs(void)
void unmount_regular(void)
{
struct mntent *mnt;
const struct mntent *mnt;
FILE *fp = NULL;
while ((mnt = iterator("/proc/mounts", &fp))) {