diff options
-rw-r--r-- | libbb/find_mount_point.c | 3 | ||||
-rw-r--r-- | shell/ash.c | 26 |
2 files changed, 17 insertions, 12 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 @@ | |||
22 | struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) | 22 | struct 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; |
diff --git a/shell/ash.c b/shell/ash.c index 712286fbd..8b8c5f1dc 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -349,8 +349,9 @@ typedef long arith_t; | |||
349 | # define BB_GLOBAL_CONST const | 349 | # define BB_GLOBAL_CONST const |
350 | #endif | 350 | #endif |
351 | 351 | ||
352 | #define FORKSHELL_DEBUG 0 | ||
353 | #if ENABLE_PLATFORM_MINGW32 | 352 | #if ENABLE_PLATFORM_MINGW32 |
353 | # define FORKSHELL_DEBUG 0 | ||
354 | |||
354 | union node; | 355 | union node; |
355 | struct strlist; | 356 | struct strlist; |
356 | struct job; | 357 | struct job; |
@@ -9660,17 +9661,20 @@ nodeckstrdup(const char *s) | |||
9660 | 9661 | ||
9661 | static union node *copynode(union node *); | 9662 | static union node *copynode(union node *); |
9662 | 9663 | ||
9663 | #if ENABLE_PLATFORM_MINGW32 && FORKSHELL_DEBUG | ||
9664 | # define FREE 1 | ||
9665 | # define NO_FREE 2 | ||
9666 | # define ANNOT(dst,note) {if (annot) annot[(char *)&dst - (char *)fs_start] = note;} | ||
9667 | #else | ||
9668 | # define FREE 1 | ||
9669 | # define NO_FREE 1 | ||
9670 | # define ANNOT(dst,note) | ||
9671 | #endif | ||
9672 | |||
9673 | #if ENABLE_PLATFORM_MINGW32 | 9664 | #if ENABLE_PLATFORM_MINGW32 |
9665 | # if FORKSHELL_DEBUG | ||
9666 | # define FREE 1 | ||
9667 | # define NO_FREE 2 | ||
9668 | # define ANNOT(dst,note) { \ | ||
9669 | if (annot) \ | ||
9670 | annot[(char *)&dst - (char *)fs_start] = note; \ | ||
9671 | } | ||
9672 | # else | ||
9673 | # define FREE 1 | ||
9674 | # define NO_FREE 1 | ||
9675 | # define ANNOT(dst,note) | ||
9676 | # endif | ||
9677 | |||
9674 | /* The relocation map is offset from the start of the forkshell data | 9678 | /* The relocation map is offset from the start of the forkshell data |
9675 | * block by 'fs_size' bytes. The flag relating to a particular destination | 9679 | * block by 'fs_size' bytes. The flag relating to a particular destination |
9676 | * pointer is thus at (dst+fs_size). */ | 9680 | * pointer is thus at (dst+fs_size). */ |