zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH 1/6] fix implicit typecast for strict compilers
@ 2014-06-07 17:18 Nikolas Garofil
  2014-06-07 17:18 ` [PATCH 2/6] strict compilers expect the number of bytes to be a size_t for bcopy Nikolas Garofil
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Nikolas Garofil @ 2014-06-07 17:18 UTC (permalink / raw)
  To: zsh-workers

---
 Src/compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/compat.c b/Src/compat.c
index cc4e876..81a95d5 100644
--- a/Src/compat.c
+++ b/Src/compat.c
@@ -40,7 +40,7 @@ strstr(const char *s, const char *t)
     char *p1, *p2;
 
     for (; *s; s++) {
-        for (p1 = s, p2 = t; *p2; p1++, p2++)
+        for (p1 = (char*)s, p2 = (char*)t; *p2; p1++, p2++)
             if (*p1 != *p2)
                 break;
         if (!*p2)
-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-06-07 19:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-07 17:18 [PATCH 1/6] fix implicit typecast for strict compilers Nikolas Garofil
2014-06-07 17:18 ` [PATCH 2/6] strict compilers expect the number of bytes to be a size_t for bcopy Nikolas Garofil
2014-06-07 19:20   ` Bart Schaefer
2014-06-07 19:29     ` Nikolas Garofil
2014-06-07 17:18 ` [PATCH 3/6] make sure signal_suspend doesn't return a undefined value Nikolas Garofil
2014-06-07 17:18 ` [PATCH 4/6] strict compilers don't like pointers that get set but are never used Nikolas Garofil
2014-06-07 17:18 ` [PATCH 5/6] memmove is expected to return dest Nikolas Garofil
2014-06-07 19:15   ` Bart Schaefer
2014-06-07 17:18 ` [PATCH 6/6] decr and tmp are only used when HAVE_STRFTIME is defined, strict compilers will complain Nikolas Garofil
2014-06-07 19:04 ` [PATCH 1/6] fix implicit typecast for strict compilers Bart Schaefer
2014-06-07 19:13   ` Nikolas Garofil
2014-06-07 19:36     ` Bart Schaefer
2014-06-07 19:43       ` Nikolas Garofil

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).