summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-12-01 20:11:41 +0200
committerMichael Widenius <monty@askmonty.org>2011-12-01 20:11:41 +0200
commitdad1322940f89aec19ff805c4218ea9daa766435 (patch)
tree4fb2c7d90990eca849e13d6b25845d891e430399 /cmd-line-utils
parent6378bdbf47af72b2f899853586faa5a2d2f0fee1 (diff)
downloadmariadb-git-dad1322940f89aec19ff805c4218ea9daa766435.tar.gz
Fixed that --with-libedit --without-readline works
Fixed buildbot failures (compiler warnings, failing tests) cmd-line-utils/libedit/map.c: Fixed compiler warning cmd-line-utils/libedit/terminal.c: Fixed compiler warning cmd-line-utils/libedit/tty.c: Fixed compiler warning configure.in: Fixed that --with-libedit --without-readline works mysql-test/suite/innodb_plugin/t/innodb_misc1.test: Fixed test that failed when characterset was missing
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/libedit/map.c2
-rw-r--r--cmd-line-utils/libedit/terminal.c16
-rw-r--r--cmd-line-utils/libedit/tty.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/cmd-line-utils/libedit/map.c b/cmd-line-utils/libedit/map.c
index 946bc185437..17b07391b69 100644
--- a/cmd-line-utils/libedit/map.c
+++ b/cmd-line-utils/libedit/map.c
@@ -1300,7 +1300,7 @@ map_bind(EditLine *el, int argc, const Char **argv)
default:
(void) fprintf(el->el_errfile,
"" FSTR ": Invalid switch `%c'.\n",
- argv[0], p[1]);
+ argv[0], (int) p[1]);
}
else
break;
diff --git a/cmd-line-utils/libedit/terminal.c b/cmd-line-utils/libedit/terminal.c
index 8cfbeac7c52..fb5600a4140 100644
--- a/cmd-line-utils/libedit/terminal.c
+++ b/cmd-line-utils/libedit/terminal.c
@@ -908,17 +908,17 @@ terminal_set(EditLine *el, const char *term)
terminal_alloc(el, t, NULL);
} else {
/* auto/magic margins */
- Val(T_am) = tgetflag("am");
- Val(T_xn) = tgetflag("xn");
+ Val(T_am) = tgetflag((char*) "am");
+ Val(T_xn) = tgetflag((char*) "xn");
/* Can we tab */
- Val(T_pt) = tgetflag("pt");
- Val(T_xt) = tgetflag("xt");
+ Val(T_pt) = tgetflag((char*) "pt");
+ Val(T_xt) = tgetflag((char*) "xt");
/* do we have a meta? */
- Val(T_km) = tgetflag("km");
- Val(T_MT) = tgetflag("MT");
+ Val(T_km) = tgetflag((char*) "km");
+ Val(T_MT) = tgetflag((char*) "MT");
/* Get the size */
- Val(T_co) = tgetnum("co");
- Val(T_li) = tgetnum("li");
+ Val(T_co) = tgetnum((char*) "co");
+ Val(T_li) = tgetnum((char*) "li");
for (t = tstr; t->name != NULL; t++) {
/* XXX: some systems' tgetstr needs non const */
terminal_alloc(el, t, tgetstr(strchr(t->name, *t->name),
diff --git a/cmd-line-utils/libedit/tty.c b/cmd-line-utils/libedit/tty.c
index 46624a87077..eea00bfc245 100644
--- a/cmd-line-utils/libedit/tty.c
+++ b/cmd-line-utils/libedit/tty.c
@@ -1215,7 +1215,7 @@ tty_stty(EditLine *el, int argc __attribute__((__unused__)), const Char **argv)
default:
(void) fprintf(el->el_errfile,
"%s: Unknown switch `%c'.\n",
- name, argv[0][1]);
+ name, (int) argv[0][1]);
return -1;
}