aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-29 22:51:58 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-29 22:51:58 +0000
commitfc6a03ef2fa63dcecef603d178139a779b9e7081 (patch)
tree443636e12ffb52db95168013bbda80f78ed49fe6 /libbb
parent0c7ca1fafeb5f23776ba7e1624636ad1698b6536 (diff)
downloadbusybox-w32-fc6a03ef2fa63dcecef603d178139a779b9e7081.tar.gz
busybox-w32-fc6a03ef2fa63dcecef603d178139a779b9e7081.tar.bz2
busybox-w32-fc6a03ef2fa63dcecef603d178139a779b9e7081.zip
preparatory patch for -Wwrite-strings #4
git-svn-id: svn://busybox.net/trunk/busybox@17656 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index bce06843b..343890868 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -81,8 +81,8 @@ static int num_ok_lines = 1;
81#endif 81#endif
82 82
83#if ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR 83#if ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR
84static char *user_buf = ""; 84static char *user_buf = (char*)"";
85static char *home_pwd_buf = ""; 85static char *home_pwd_buf = (char*)"";
86#endif 86#endif
87 87
88#if ENABLE_FEATURE_TAB_COMPLETION 88#if ENABLE_FEATURE_TAB_COMPLETION
@@ -422,7 +422,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
422 char *pfind = strrchr(command, '/'); 422 char *pfind = strrchr(command, '/');
423 423
424 npaths = 1; 424 npaths = 1;
425 path1[0] = "."; 425 path1[0] = (char*)".";
426 426
427 if (pfind == NULL) { 427 if (pfind == NULL) {
428 /* no dir, if flags==EXE_ONLY - get paths, else "." */ 428 /* no dir, if flags==EXE_ONLY - get paths, else "." */
@@ -447,7 +447,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
447 447
448 while ((next = readdir(dir)) != NULL) { 448 while ((next = readdir(dir)) != NULL) {
449 int len1; 449 int len1;
450 char *str_found = next->d_name; 450 const char *str_found = next->d_name;
451 451
452 /* matched? */ 452 /* matched? */
453 if (strncmp(str_found, pfind, strlen(pfind))) 453 if (strncmp(str_found, pfind, strlen(pfind)))