From 205d62f211f25b7c02c1f363e59079c5c8de432a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 30 Mar 2005 23:58:53 +0000 Subject: [PATCH] avoid const string and strict aliasing warnings git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14700 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/editline/editline.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/editline/editline.c b/lib/editline/editline.c index 99888b10f..563f5afda 100644 --- a/lib/editline/editline.c +++ b/lib/editline/editline.c @@ -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) {