From 8665549030043b6eee46f60d52c57e8519372286 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 28 Jul 2005 14:45:32 +0000 Subject: 21541: remove some warnings from ZLE_UNICODE_SUPPORT --- Src/Zle/zle_params.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src/Zle/zle_params.c') diff --git a/Src/Zle/zle_params.c b/Src/Zle/zle_params.c index f9ac4f284..f089a5f47 100644 --- a/Src/Zle/zle_params.c +++ b/Src/Zle/zle_params.c @@ -187,7 +187,7 @@ set_buffer(UNUSED(Param pm), char *x) static char * get_buffer(UNUSED(Param pm)) { - return (char *)zlelineasstring((char *)zleline, zlell, 0, NULL, NULL, 1); + return (char *)zlelineasstring(zleline, zlell, 0, NULL, NULL, 1); } /**/ @@ -264,7 +264,7 @@ get_lbuffer(UNUSED(Param pm)) static void set_rbuffer(UNUSED(Param pm), char *x) { - char *y; + ZLE_STRING_T y; int len; if (x && *x != ZWC('\0')) @@ -610,7 +610,8 @@ static char * get_lsearch(UNUSED(Param pm)) { if (previous_search_len) - return metafy(previous_search, previous_search_len, META_HEAPDUP); + return zlelineasstring(previous_search, previous_search_len, 0, + NULL, NULL, 1); else return ""; } -- cgit 1.4.1