diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-07-28 14:45:32 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-07-28 14:45:32 +0000 |
commit | 8665549030043b6eee46f60d52c57e8519372286 (patch) | |
tree | 8f2e50a6f567d9294e754f2569bec7b319ae8316 /Src/Zle/zle_main.c | |
parent | a680faf0502063ae7488b20a95d3d82f49a12120 (diff) | |
download | zsh-8665549030043b6eee46f60d52c57e8519372286.tar.gz zsh-8665549030043b6eee46f60d52c57e8519372286.tar.xz zsh-8665549030043b6eee46f60d52c57e8519372286.zip |
21541: remove some warnings from ZLE_UNICODE_SUPPORT
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r-- | Src/Zle/zle_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 0f9d55226..e6f83cb3e 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -938,7 +938,7 @@ zleread(char **lp, char **rp, int flags, int context) zlecontext = context; histline = curhist; undoing = 1; - zleline = (unsigned char *)zalloc(((linesz = 256) + 2) * ZLE_CHAR_SIZE); + zleline = (ZLE_STRING_T)zalloc(((linesz = 256) + 2) * ZLE_CHAR_SIZE); *zleline = ZWC('\0'); virangeflag = lastcmd = done = zlecs = zlell = mark = 0; vichgflag = 0; @@ -1518,7 +1518,8 @@ wordcharstrigger(void) { #ifdef ZLE_UNICODE_SUPPORT zrealloc(zle_wordchars, strlen(wordchars)*MB_CUR_MAX); - mbsrtowcs(zle_wordchars, &wordchars, strlen(wordchars), NULL); + mbsrtowcs(zle_wordchars, (const char **)&wordchars, + strlen(wordchars), NULL); /* TODO: error handling here */ #endif } |