summaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 22:51:58 +0000
committerDenis Vlasenko2007-01-29 22:51:58 +0000
commitab2aea44479fd6f519bccd651a37f30e792b7593 (patch)
tree443636e12ffb52db95168013bbda80f78ed49fe6 /libbb/lineedit.c
parent06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff)
downloadbusybox-ab2aea44479fd6f519bccd651a37f30e792b7593.zip
busybox-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.gz
preparatory patch for -Wwrite-strings #4
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index bce0684..3438908 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -81,8 +81,8 @@ static int num_ok_lines = 1;
#endif
#if ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR
-static char *user_buf = "";
-static char *home_pwd_buf = "";
+static char *user_buf = (char*)"";
+static char *home_pwd_buf = (char*)"";
#endif
#if ENABLE_FEATURE_TAB_COMPLETION
@@ -422,7 +422,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
char *pfind = strrchr(command, '/');
npaths = 1;
- path1[0] = ".";
+ path1[0] = (char*)".";
if (pfind == NULL) {
/* no dir, if flags==EXE_ONLY - get paths, else "." */
@@ -447,7 +447,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
while ((next = readdir(dir)) != NULL) {
int len1;
- char *str_found = next->d_name;
+ const char *str_found = next->d_name;
/* matched? */
if (strncmp(str_found, pfind, strlen(pfind)))