aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/find_mount_point.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c
index de314a3c7..af75afb50 100644
--- a/libbb/find_mount_point.c
+++ b/libbb/find_mount_point.c
@@ -20,11 +20,12 @@
20struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) 20struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too)
21{ 21{
22 struct stat s; 22 struct stat s;
23 FILE *mtab_fp;
24 struct mntent *mountEntry; 23 struct mntent *mountEntry;
24#if !ENABLE_PLATFORM_MINGW32
25 FILE *mtab_fp;
25 dev_t devno_of_name; 26 dev_t devno_of_name;
26 bool block_dev; 27 bool block_dev;
27#if ENABLE_PLATFORM_MINGW32 28#else
28 static char mnt_fsname[4]; 29 static char mnt_fsname[4];
29 static char mnt_dir[4]; 30 static char mnt_dir[4];
30 static struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 }; 31 static struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 };