summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <vva@genie.(none)>2002-11-20 13:30:48 +0400
committerunknown <vva@genie.(none)>2002-11-20 13:30:48 +0400
commit666dd7ba7f020aca156b16be7922dcce66039bf4 (patch)
treebf92d7674e897c1e19a675fef2187ee3dc959dcb
parent953f6c51fed3478cc3905d2ce15728e5c3e7f00c (diff)
downloadmariadb-git-666dd7ba7f020aca156b16be7922dcce66039bf4.tar.gz
discard warnings in readline 4.3
-rw-r--r--readline/display.c4
-rw-r--r--readline/mbutil.c4
-rw-r--r--readline/rlmbutil.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/readline/display.c b/readline/display.c
index 180061b29ae..82899d04f0c 100644
--- a/readline/display.c
+++ b/readline/display.c
@@ -70,7 +70,7 @@ static void insert_some_chars PARAMS((char *, int, int));
static void cr PARAMS((void));
#if defined (HANDLE_MULTIBYTE)
-static int _rl_col_width PARAMS((char *, int, int));
+static int _rl_col_width PARAMS((const char *, int, int));
static int *_rl_wrapped_line;
#else
# define _rl_col_width(l, s, e) (((e) <= (s)) ? 0 : (e) - (s))
@@ -2118,7 +2118,7 @@ _rl_current_display_line ()
scan from the beginning of the string to take the state into account. */
static int
_rl_col_width (str, start, end)
- char *str;
+ const char *str;
int start, end;
{
wchar_t wc;
diff --git a/readline/mbutil.c b/readline/mbutil.c
index 1b7342bfc0b..debad6320ce 100644
--- a/readline/mbutil.c
+++ b/readline/mbutil.c
@@ -196,7 +196,7 @@ _rl_find_prev_mbchar_internal (string, seed, find_non_zero)
if it couldn't parse a complete multibyte character. */
int
_rl_get_char_len (src, ps)
- char *src;
+ const char *src;
mbstate_t *ps;
{
size_t tmp;
@@ -251,7 +251,7 @@ _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2)
it returns -1 */
int
_rl_adjust_point(string, point, ps)
- char *string;
+ const char *string;
int point;
mbstate_t *ps;
{
diff --git a/readline/rlmbutil.h b/readline/rlmbutil.h
index 27ca32bfc7d..4660a72fce5 100644
--- a/readline/rlmbutil.h
+++ b/readline/rlmbutil.h
@@ -82,8 +82,8 @@ extern int _rl_find_next_mbchar PARAMS((char *, int, int, int));
#ifdef HANDLE_MULTIBYTE
extern int _rl_compare_chars PARAMS((char *, int, mbstate_t *, char *, int, mbstate_t *));
-extern int _rl_get_char_len PARAMS((char *, mbstate_t *));
-extern int _rl_adjust_point PARAMS((char *, int, mbstate_t *));
+extern int _rl_get_char_len PARAMS((const char *, mbstate_t *));
+extern int _rl_adjust_point PARAMS((const char *, int, mbstate_t *));
extern int _rl_read_mbchar PARAMS((char *, int));
extern int _rl_read_mbstring PARAMS((int, char *, int));