aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 22:35:19 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-12 22:35:19 +0000
commitf5f75c5e82d47613847c356664e47c4be69e73aa (patch)
treee71a09d744a9db75a1cbe6cb73d55e71a435e7d1 /include
parentf312e32662f6d98f86c68d8f781b3255547f8200 (diff)
downloadbusybox-w32-f5f75c5e82d47613847c356664e47c4be69e73aa.tar.gz
busybox-w32-f5f75c5e82d47613847c356664e47c4be69e73aa.tar.bz2
busybox-w32-f5f75c5e82d47613847c356664e47c4be69e73aa.zip
remove nearly-duplicate PATHs in several places
function old new delta bb_PATH_root_path - 35 +35 varunset 60 58 -2 arith 2042 2033 -9 bb_default_root_login_path 30 - -30 .rodata 128794 128762 -32 which_main 152 117 -35 defpathvar 40 - -40 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 4f418e7c1..ce62f4529 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -953,8 +953,9 @@ extern const char bb_dev_null[];
953extern const char bb_busybox_exec_path[]; 953extern const char bb_busybox_exec_path[];
954/* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, 954/* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin,
955 * but I want to save a few bytes here */ 955 * but I want to save a few bytes here */
956extern const char bb_default_root_login_path[]; /* "/sbin:/usr/sbin:/bin:/usr/bin" */ 956extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */
957#define bb_default_login_path (bb_default_root_login_path + sizeof("/sbin:/usr/sbin")) 957#define bb_default_root_path (bb_PATH_root_path + sizeof("PATH"))
958#define bb_default_path (bb_PATH_root_path + sizeof("PATH=/sbin:/usr/sbin"))
958 959
959extern const int const_int_0; 960extern const int const_int_0;
960extern const int const_int_1; 961extern const int const_int_1;