From 97214a77b23f0fc26cd4c270c80238d1c3568227 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 27 Jun 2017 15:40:52 +0200 Subject: 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 Signed-off-by: Ron Yorston --- libbb/find_mount_point.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libbb') 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 @@ struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) { struct stat s; - FILE *mtab_fp; struct mntent *mountEntry; +#if !ENABLE_PLATFORM_MINGW32 + FILE *mtab_fp; dev_t devno_of_name; bool block_dev; -#if ENABLE_PLATFORM_MINGW32 +#else static char mnt_fsname[4]; static char mnt_dir[4]; static struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 }; -- cgit v1.2.3-55-g6feb