diff options
author | unknown <vva@genie.(none)> | 2002-11-22 18:35:58 +0400 |
---|---|---|
committer | unknown <vva@genie.(none)> | 2002-11-22 18:35:58 +0400 |
commit | ed4a4b89cdebaa31560fcbfd0f677e4b59a54123 (patch) | |
tree | 2a30ba577983fd03bb27f9a98ad8798c951be2ac /readline/display.c | |
parent | da023c7b0a397ad07b2f9af680ae9c61cdd4513b (diff) | |
download | mariadb-git-ed4a4b89cdebaa31560fcbfd0f677e4b59a54123.tar.gz |
correct some warnings with const char*
Diffstat (limited to 'readline/display.c')
-rw-r--r-- | readline/display.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/readline/display.c b/readline/display.c index 82899d04f0c..f393e7e8516 100644 --- a/readline/display.c +++ b/readline/display.c @@ -121,7 +121,7 @@ int _rl_suppress_redisplay = 0; /* The stuff that gets printed out before the actual text of the line. This is usually pointing to rl_prompt. */ -char *rl_display_prompt = (char *)NULL; +const char *rl_display_prompt = (char *)NULL; /* Pseudo-global variables declared here. */ /* The visible cursor position. If you print some text, adjust this. */ @@ -382,7 +382,7 @@ rl_redisplay () register char *line; int c_pos, inv_botlin, lb_botlin, lb_linenum; int newlines, lpos, temp; - char *prompt_this_line; + const char *prompt_this_line; #if defined (HANDLE_MULTIBYTE) wchar_t wc; size_t wc_bytes; @@ -395,7 +395,7 @@ rl_redisplay () return; if (!rl_display_prompt) - rl_display_prompt = (char*)""; + rl_display_prompt = ""; if (invisible_line == 0) { @@ -1760,7 +1760,7 @@ rl_reset_line_state () { rl_on_new_line (); - rl_display_prompt = (char*)(rl_prompt ? rl_prompt : ""); + rl_display_prompt = rl_prompt ? rl_prompt : ""; forced_display = 1; return 0; } @@ -1999,7 +1999,8 @@ static void redraw_prompt (t) char *t; { - char *oldp, *oldl, *oldlprefix; + const char *oldp; + char *oldl, *oldlprefix; int oldlen, oldlast, oldplen, oldninvis; /* Geez, I should make this a struct. */ |