avoid const string and strict aliasing warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14700 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-03-30 23:58:53 +00:00
parent 3eeb75e552
commit 205d62f211

View File

@@ -217,7 +217,7 @@ static void
TTYinfo()
{
static int init;
char *term;
const char *term;
char buff[2048];
char *bp;
char *tmp;
@@ -250,8 +250,6 @@ TTYinfo()
tmp = tgetstr("le", &bp);
if (tmp != NULL)
backspace = strdup(tmp);
else
backspace = "\b";
TTYwidth = tgetnum("co");
TTYrows = tgetnum("li");
@@ -1077,7 +1075,7 @@ c_possible()
int ac;
word = find_word();
ac = rl_list_possib((char *)word, (char ***)&av);
ac = rl_list_possib((char *)word, (void *)&av);
if (word)
free(word);
if (ac) {