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:
@@ -217,7 +217,7 @@ static void
|
|||||||
TTYinfo()
|
TTYinfo()
|
||||||
{
|
{
|
||||||
static int init;
|
static int init;
|
||||||
char *term;
|
const char *term;
|
||||||
char buff[2048];
|
char buff[2048];
|
||||||
char *bp;
|
char *bp;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
@@ -250,8 +250,6 @@ TTYinfo()
|
|||||||
tmp = tgetstr("le", &bp);
|
tmp = tgetstr("le", &bp);
|
||||||
if (tmp != NULL)
|
if (tmp != NULL)
|
||||||
backspace = strdup(tmp);
|
backspace = strdup(tmp);
|
||||||
else
|
|
||||||
backspace = "\b";
|
|
||||||
TTYwidth = tgetnum("co");
|
TTYwidth = tgetnum("co");
|
||||||
TTYrows = tgetnum("li");
|
TTYrows = tgetnum("li");
|
||||||
|
|
||||||
@@ -1077,7 +1075,7 @@ c_possible()
|
|||||||
int ac;
|
int ac;
|
||||||
|
|
||||||
word = find_word();
|
word = find_word();
|
||||||
ac = rl_list_possib((char *)word, (char ***)&av);
|
ac = rl_list_possib((char *)word, (void *)&av);
|
||||||
if (word)
|
if (word)
|
||||||
free(word);
|
free(word);
|
||||||
if (ac) {
|
if (ac) {
|
||||||
|
Reference in New Issue
Block a user