diff options
| author | Ron Yorston <rmy@pobox.com> | 2022-05-10 10:55:03 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2022-05-10 10:55:55 +0100 |
| commit | 342fe91f3dafbddb656a0c478d5c495f9422d3bf (patch) | |
| tree | c2df62c141fb7800b314e16e6400357c46310a0f /shell | |
| parent | 3194a475deb5e3e9e7aef680d9bf5fb0a63d551a (diff) | |
| download | busybox-w32-342fe91f3dafbddb656a0c478d5c495f9422d3bf.tar.gz busybox-w32-342fe91f3dafbddb656a0c478d5c495f9422d3bf.tar.bz2 busybox-w32-342fe91f3dafbddb656a0c478d5c495f9422d3bf.zip | |
ash: code shrink
Changing one of the constants used by is_bb_var() saves a few bytes
in the 32-bit build.
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index ddac42895..b3d8feb0b 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -2654,7 +2654,7 @@ fix_pathvar(const char *path, int len) | |||
| 2654 | } | 2654 | } |
| 2655 | 2655 | ||
| 2656 | #define BB_VAR_EXACT 1 /* exact match for name */ | 2656 | #define BB_VAR_EXACT 1 /* exact match for name */ |
| 2657 | #define BB_VAR_ASSIGN 2 /* matches name followed by '=' */ | 2657 | #define BB_VAR_ASSIGN -1 /* matches name followed by '=' */ |
| 2658 | 2658 | ||
| 2659 | /* Match variables that should be placed in the environment immediately | 2659 | /* Match variables that should be placed in the environment immediately |
| 2660 | * they're exported and removed immediately they're no longer exported */ | 2660 | * they're exported and removed immediately they're no longer exported */ |
| @@ -2688,7 +2688,6 @@ static struct var * | |||
| 2688 | setvareq(char *s, int flags) | 2688 | setvareq(char *s, int flags) |
| 2689 | { | 2689 | { |
| 2690 | struct var *vp, **vpp; | 2690 | struct var *vp, **vpp; |
| 2691 | |||
| 2692 | #if ENABLE_PLATFORM_MINGW32 | 2691 | #if ENABLE_PLATFORM_MINGW32 |
| 2693 | const char *paths = "PATH=\0""CDPATH=\0""MANPATH=\0"; | 2692 | const char *paths = "PATH=\0""CDPATH=\0""MANPATH=\0"; |
| 2694 | const char *p; | 2693 | const char *p; |
