From fc6a03ef2fa63dcecef603d178139a779b9e7081 Mon Sep 17 00:00:00 2001 From: vda Date: Mon, 29 Jan 2007 22:51:58 +0000 Subject: preparatory patch for -Wwrite-strings #4 git-svn-id: svn://busybox.net/trunk/busybox@17656 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/lineedit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbb') 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; #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))) -- cgit v1.2.3-55-g6feb