about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/init.c6
-rw-r--r--Src/zsh.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Src/init.c b/Src/init.c
index 716898e28..c7f20a1bd 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1180,7 +1180,7 @@ mod_export ZleVoidIntFn zlesetkeymapptr = noop_function_int;
 #endif /* !LINKED_XMOD_zshQszle */
 
 /**/
-unsigned char *
+char *
 autoload_zleread(char **lp, char **rp, int ha, int con)
 {
     zlereadptr = fallback_zleread;
@@ -1190,7 +1190,7 @@ autoload_zleread(char **lp, char **rp, int ha, int con)
 }
 
 /**/
-mod_export unsigned char *
+mod_export char *
 fallback_zleread(char **lp, UNUSED(char **rp), UNUSED(int ha), UNUSED(int con))
 {
     char *pptbuf;
@@ -1200,7 +1200,7 @@ fallback_zleread(char **lp, UNUSED(char **rp), UNUSED(int ha), UNUSED(int con))
     write(2, (WRITE_ARG_2_T)pptbuf, pptlen);
     free(pptbuf);
 
-    return (unsigned char *)shingetline();
+    return shingetline();
 }
 
 /**/
diff --git a/Src/zsh.h b/Src/zsh.h
index 2888ec5a9..26d645203 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1918,8 +1918,8 @@ typedef int (*CompctlReadFn) _((char *, char **, Options, char *));
 
 typedef void (*ZleVoidFn) _((void));
 typedef void (*ZleVoidIntFn) _((int));
-typedef unsigned char *(*ZleReadFn) _((char **, char **, int, int));
-typedef unsigned char *(*ZleGetLineFn) _((int *, int *));
+typedef char *(*ZleReadFn) _((char **, char **, int, int));
+typedef char *(*ZleGetLineFn) _((int *, int *));
 
 /***************************************/
 /* Hooks in core.                      */