summaryrefslogtreecommitdiff
path: root/readline/undo.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-10-17 19:39:39 +0300
committermonty@hundin.mysql.fi <>2001-10-17 19:39:39 +0300
commit0bfec316ce62bf5f46b55888a0a9d593171c4eb5 (patch)
treea99a119a594cef911c36b9e84ddb7975f5747e05 /readline/undo.c
parentfaa51dc2854d2a2e0fe09cad44702f57d26109ae (diff)
downloadmariadb-git-0bfec316ce62bf5f46b55888a0a9d593171c4eb5.tar.gz
Don't do signal() on windows (Causes instability problems)
Safer, a bit faster filesort. Code changes to avoid calls to current_thd() (faster code). Removed all compiler warnings from readline.
Diffstat (limited to 'readline/undo.c')
-rw-r--r--readline/undo.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/readline/undo.c b/readline/undo.c
index 68710b667ed..c8f4892b774 100644
--- a/readline/undo.c
+++ b/readline/undo.c
@@ -174,7 +174,7 @@ _rl_fix_last_undo_of_type (type, start, end)
for (rl = rl_undo_list; rl; rl = rl->next)
{
- if (rl->what == type)
+ if ((int) rl->what == type)
{
rl->start = start;
rl->end = end;
@@ -225,8 +225,8 @@ rl_modifying (start, end)
/* Revert the current line to its previous state. */
int
-rl_revert_line (count, key)
- int count, key;
+rl_revert_line (int count __attribute__((unused)),
+ int key __attribute__((unused)))
{
if (!rl_undo_list)
ding ();
@@ -240,8 +240,7 @@ rl_revert_line (count, key)
/* Do some undoing of things that were done. */
int
-rl_undo_command (count, key)
- int count, key;
+rl_undo_command (int count, int key __attribute__((unused)))
{
if (count < 0)
return 0; /* Nothing to do. */