diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-27 15:40:52 +0200 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-23 10:37:17 +0100 |
commit | 97214a77b23f0fc26cd4c270c80238d1c3568227 (patch) | |
tree | 76be694ecdb892dcd57a167f7c94e3a960b6ba1b | |
parent | 6abd18047bb07ff7846339fe13f26dc8c340967f (diff) | |
download | busybox-w32-97214a77b23f0fc26cd4c270c80238d1c3568227.tar.gz busybox-w32-97214a77b23f0fc26cd4c270c80238d1c3568227.tar.bz2 busybox-w32-97214a77b23f0fc26cd4c270c80238d1c3568227.zip |
find_mount_point: avoid unused variables
These variables are not used when compiling for MINGW.
This change was 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.c | 5 |
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 @@ | |||
20 | struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) | 20 | struct 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 }; |