summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-14 13:22:09 +0000
committerDenis Vlasenko2007-04-14 13:22:09 +0000
commit5f9468e99649c0daa5cacfe180fbd0e061df6fc3 (patch)
tree61ab361ce2e76c19f9c3d3661c9fd8d3e0eae6cf /libbb
parent8a28e620ce6017fd184c26a7ce25f5e167a90fe7 (diff)
downloadbusybox-5f9468e99649c0daa5cacfe180fbd0e061df6fc3.zip
busybox-5f9468e99649c0daa5cacfe180fbd0e061df6fc3.tar.gz
lineedit: nuke two unused variables and code which sets them
applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 59baf23..4fc5e7a 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -85,11 +85,6 @@ static char *user_buf = (char*)"";
static char *home_pwd_buf = (char*)"";
#endif
-#if ENABLE_FEATURE_TAB_COMPLETION
-static int my_uid;
-static int my_gid;
-#endif
-
/* Put 'command_ps[cursor]', cursor++.
* Advance cursor on screen. If we reached right margin, scroll text up
* and remove terminal margin effect by printing 'next_char' */
@@ -1312,10 +1307,6 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t
}
}
#endif
-#if ENABLE_FEATURE_TAB_COMPLETION
- my_uid = getuid();
- my_gid = getgid();
-#endif
/* Print out the command prompt */
parse_prompt(prompt);