summaryrefslogtreecommitdiff
path: root/readline/tilde.c
diff options
context:
space:
mode:
authorunknown <vva@genie.(none)>2002-11-22 18:35:58 +0400
committerunknown <vva@genie.(none)>2002-11-22 18:35:58 +0400
commited4a4b89cdebaa31560fcbfd0f677e4b59a54123 (patch)
tree2a30ba577983fd03bb27f9a98ad8798c951be2ac /readline/tilde.c
parentda023c7b0a397ad07b2f9af680ae9c61cdd4513b (diff)
downloadmariadb-git-ed4a4b89cdebaa31560fcbfd0f677e4b59a54123.tar.gz
correct some warnings with const char*
Diffstat (limited to 'readline/tilde.c')
-rw-r--r--readline/tilde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/readline/tilde.c b/readline/tilde.c
index 11209903cf8..fab4aab65ad 100644
--- a/readline/tilde.c
+++ b/readline/tilde.c
@@ -190,7 +190,7 @@ tilde_expand (string)
int result_size, result_index;
result_index = result_size = 0;
- if ((result = (char*)strchr(string, '~')))
+ if ((result = strchr(string, '~')))
result = (char *)xmalloc (result_size = (strlen (string) + 16));
else
result = (char *)xmalloc (result_size = (strlen (string) + 1));