summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-11-15 08:44:21 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-11-15 08:44:21 +0000
commitd8838293f533a6cab5902611fe72bc5d21bb16fa (patch)
tree390fa518b23dec0fda5f7658afaca27b35f0ebb3
parente79af955f0620a699b01f11b584788404ba81767 (diff)
downloadzsh-d8838293f533a6cab5902611fe72bc5d21bb16fa.tar.gz
zsh-d8838293f533a6cab5902611fe72bc5d21bb16fa.tar.xz
zsh-d8838293f533a6cab5902611fe72bc5d21bb16fa.zip
Changed two zle functions to each return a char pointer, not an
unsigned char pointer.
-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.                      */