From 3b974365a17e3a580d908b7deed2410f2ac03d97 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 27 Jun 2017 15:55:41 +0200 Subject: find_mount_point: avoid warnings about casts to non-const These changes were forgotten in 878295063 (df: limited implementation for WIN32, 2013-04-03). Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- libbb/find_mount_point.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c index af75afb50..1308d9b65 100644 --- a/libbb/find_mount_point.c +++ b/libbb/find_mount_point.c @@ -28,8 +28,13 @@ struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) #else static char mnt_fsname[4]; static char mnt_dir[4]; - static struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 }; - char *current, *path; + static char mnt_type[1]; + static char mnt_opts[1]; + static struct mntent my_mount_entry = { + mnt_fsname, mnt_dir, mnt_type, mnt_opts, 0, 0 + }; + char *current; + const char *path; DWORD len; #endif -- cgit v1.2.3-55-g6feb