aboutsummaryrefslogtreecommitdiff
path: root/libbb/find_mount_point.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-07-13 10:39:58 +0100
committerRon Yorston <rmy@pobox.com>2021-07-13 10:43:14 +0100
commitdcca23dc4cf9b51a1c2576360fea190e9b71204e (patch)
tree568f171efb20f24b54df495948152c1b585416db /libbb/find_mount_point.c
parent819188c1cc2b90d95cf35dae6c72d304df4297b7 (diff)
downloadbusybox-w32-dcca23dc4cf9b51a1c2576360fea190e9b71204e.tar.gz
busybox-w32-dcca23dc4cf9b51a1c2576360fea190e9b71204e.tar.bz2
busybox-w32-dcca23dc4cf9b51a1c2576360fea190e9b71204e.zip
ash, libbb: don't affect POSIX build
Tweak code to avoid contamination of the POSIX build. There weren't any adverse effects, but better safe than sorry.
Diffstat (limited to 'libbb/find_mount_point.c')
-rw-r--r--libbb/find_mount_point.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c
index 2464357c1..c16f9e087 100644
--- a/libbb/find_mount_point.c
+++ b/libbb/find_mount_point.c
@@ -22,12 +22,13 @@
22struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) 22struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too)
23{ 23{
24 struct stat s; 24 struct stat s;
25 struct mntent *mountEntry;
26#if !ENABLE_PLATFORM_MINGW32 25#if !ENABLE_PLATFORM_MINGW32
27 FILE *mtab_fp; 26 FILE *mtab_fp;
27 struct mntent *mountEntry;
28 dev_t devno_of_name; 28 dev_t devno_of_name;
29 bool block_dev; 29 bool block_dev;
30#else 30#else
31 struct mntent *mountEntry;
31 static struct mntdata *data = NULL; 32 static struct mntdata *data = NULL;
32 char *current; 33 char *current;
33 const char *path; 34 const char *path;