diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2005-10-19 23:45:06 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2005-10-19 23:45:06 +0000 |
commit | 99947c0c9526cd754ef0faed3f5e9ab28accc225 (patch) | |
tree | 8f28141d36a723907be4fce874a044838473d2e7 | |
parent | 212094220376c948ccfa50948e228856dda6ea43 (diff) | |
download | zsh-99947c0c9526cd754ef0faed3f5e9ab28accc225.tar.gz zsh-99947c0c9526cd754ef0faed3f5e9ab28accc225.tar.xz zsh-99947c0c9526cd754ef0faed3f5e9ab28accc225.zip |
Got rid of a pointer-type warning by adding a definition for a
REFRESH_CHAR type and using it to define nullchr (it was using ZLE_INT_T).
-rw-r--r-- | Src/Zle/zle_refresh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index ae4dc17ff..5fa8f644b 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -35,6 +35,7 @@ * placeholder and wint_t guarantees that we can use WEOF to do this. */ typedef wint_t *REFRESH_STRING; +typedef wint_t REFRESH_CHAR; /* * Unfortunately, that means the pointer is the wrong type for @@ -81,6 +82,7 @@ ZR_strncmp(wint_t *wstr1, wint_t *wstr2, int len) } #else typedef char *REFRESH_STRING; +typedef char REFRESH_CHAR; #define ZR_memset memset #define ZR_memcpy memcpy @@ -971,7 +973,7 @@ refreshline(int ln) ollen = ZR_strlen(ol); } else { - static ZLE_INT_T nullchr = ZWC('\0'); + static REFRESH_CHAR nullchr = ZWC('\0'); ol = &nullchr; ollen = 0; } |