Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/6] fix implicit typecast for strict compilers
- X-seq: zsh-workers 32732
- From: Nikolas Garofil <nikolas@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 1/6] fix implicit typecast for strict compilers
- Date: Sat, 7 Jun 2014 19:18:50 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id; bh=bBD3LvZIdBQNmdxPAckas97tUPymBFlLRRQKUrMELOo=; b=JT81i+PbV9CZ9Pn6yE+EgMBPXOxGL63Ny5boVPNa1xIX3rMtFWX+Y4khgWuCXgJ2iC N9rXQq2aSp4RXKhJ8Dk7vsP2NlTiZ6MenSCDxH6o4D7iwBkyHs5qaCYYADH/Is1NbZgn /Paw46eNg304WGckB3Z8a1P4faCZTtu2wCxwziITBDrb0WKqX0PJSEKzWJYyEv63CPPn iso0uPestDnU1szYrKlf85SvW7shbr1Ug82zTxDF7OLQ4Vu7oCMLdRjpaoqMJ3/yhPcz 2ycmv4Fk32z6sAUrdD+yDDD8vM/o71apeGcIu+KI0Ac6Fkps6mnAnbLLnYkIxfHSLi45 SJ2A==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: Nikolas Garofil <nikolas.garofil@xxxxxxxxx>
---
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author