From 342fe91f3dafbddb656a0c478d5c495f9422d3bf Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 10 May 2022 10:55:03 +0100 Subject: ash: code shrink Changing one of the constants used by is_bb_var() saves a few bytes in the 32-bit build. --- shell/ash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shell') 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) } #define BB_VAR_EXACT 1 /* exact match for name */ -#define BB_VAR_ASSIGN 2 /* matches name followed by '=' */ +#define BB_VAR_ASSIGN -1 /* matches name followed by '=' */ /* Match variables that should be placed in the environment immediately * they're exported and removed immediately they're no longer exported */ @@ -2688,7 +2688,6 @@ static struct var * setvareq(char *s, int flags) { struct var *vp, **vpp; - #if ENABLE_PLATFORM_MINGW32 const char *paths = "PATH=\0""CDPATH=\0""MANPATH=\0"; const char *p; -- cgit v1.2.3-55-g6feb