aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-06-27 15:55:41 +0200
committerRon Yorston <rmy@pobox.com>2017-08-23 11:19:24 +0100
commit3b974365a17e3a580d908b7deed2410f2ac03d97 (patch)
tree768bc6f1a8b19a51ede7ab2a5d937f776a7949a4
parent47d5fa233ec73589fe8a198bcfad0a8efbe219de (diff)
downloadbusybox-w32-3b974365a17e3a580d908b7deed2410f2ac03d97.tar.gz
busybox-w32-3b974365a17e3a580d908b7deed2410f2ac03d97.tar.bz2
busybox-w32-3b974365a17e3a580d908b7deed2410f2ac03d97.zip
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 <johannes.schindelin@gmx.de> Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r--libbb/find_mount_point.c9
1 files 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)
28#else 28#else
29 static char mnt_fsname[4]; 29 static char mnt_fsname[4];
30 static char mnt_dir[4]; 30 static char mnt_dir[4];
31 static struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 }; 31 static char mnt_type[1];
32 char *current, *path; 32 static char mnt_opts[1];
33 static struct mntent my_mount_entry = {
34 mnt_fsname, mnt_dir, mnt_type, mnt_opts, 0, 0
35 };
36 char *current;
37 const char *path;
33 DWORD len; 38 DWORD len;
34#endif 39#endif
35 40