aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-14 13:22:09 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-14 13:22:09 +0000
commit52e4828d522d1cc75f43d064a871943de305a08e (patch)
tree61ab361ce2e76c19f9c3d3661c9fd8d3e0eae6cf /libbb
parent9410d71db68f2c5a1ec9fa339fbf95949525459e (diff)
downloadbusybox-w32-52e4828d522d1cc75f43d064a871943de305a08e.tar.gz
busybox-w32-52e4828d522d1cc75f43d064a871943de305a08e.tar.bz2
busybox-w32-52e4828d522d1cc75f43d064a871943de305a08e.zip
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. git-svn-id: svn://busybox.net/trunk/busybox@18439 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 59baf23a8..4fc5e7a61 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -85,11 +85,6 @@ static char *user_buf = (char*)"";
85static char *home_pwd_buf = (char*)""; 85static char *home_pwd_buf = (char*)"";
86#endif 86#endif
87 87
88#if ENABLE_FEATURE_TAB_COMPLETION
89static int my_uid;
90static int my_gid;
91#endif
92
93/* Put 'command_ps[cursor]', cursor++. 88/* Put 'command_ps[cursor]', cursor++.
94 * Advance cursor on screen. If we reached right margin, scroll text up 89 * Advance cursor on screen. If we reached right margin, scroll text up
95 * and remove terminal margin effect by printing 'next_char' */ 90 * 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
1312 } 1307 }
1313 } 1308 }
1314#endif 1309#endif
1315#if ENABLE_FEATURE_TAB_COMPLETION
1316 my_uid = getuid();
1317 my_gid = getgid();
1318#endif
1319 /* Print out the command prompt */ 1310 /* Print out the command prompt */
1320 parse_prompt(prompt); 1311 parse_prompt(prompt);
1321 1312