about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-03-03 11:05:40 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-03-03 11:05:40 +0000
commit0b787b5da25615fff4f41a1101a42f1ab142dcd4 (patch)
treef80d2d865fa99e6d85eebe67fbe8e43e3ebd5fc2 /Src
parent54af3ffed03e37e8f0749e032ab3aa3e6a06c41e (diff)
downloadzsh-0b787b5da25615fff4f41a1101a42f1ab142dcd4.tar.gz
zsh-0b787b5da25615fff4f41a1101a42f1ab142dcd4.tar.xz
zsh-0b787b5da25615fff4f41a1101a42f1ab142dcd4.zip
19525: suppress compiler warnings and complete groups using lookupd on Mac OS
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/socket.c2
-rw-r--r--Src/Modules/tcp.c2
-rw-r--r--Src/Zle/zle_params.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/Src/Modules/socket.c b/Src/Modules/socket.c
index cca980845..ace990ab4 100644
--- a/Src/Modules/socket.c
+++ b/Src/Modules/socket.c
@@ -171,7 +171,7 @@ bin_zsocket(char *nam, char **args, Options ops, int func)
 	    tv.tv_sec = 0;
 	    tv.tv_usec = 0;
 	    
-	    if (ret = select(lfd+1, &rfds, NULL, NULL, &tv)) return 1;
+	    if ((ret = select(lfd+1, &rfds, NULL, NULL, &tv))) return 1;
 	    else if (ret == -1)
 	    {
 		zwarnnam(nam, "select error: %e", NULL, errno);
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c
index 8e42ead55..453f7bf21 100644
--- a/Src/Modules/tcp.c
+++ b/Src/Modules/tcp.c
@@ -515,7 +515,7 @@ bin_ztcp(char *nam, char **args, Options ops, int func)
 	    tv.tv_sec = 0;
 	    tv.tv_usec = 0;
 	    
-	    if (ret = select(lfd+1, &rfds, NULL, NULL, &tv)) return 1;
+	    if ((ret = select(lfd+1, &rfds, NULL, NULL, &tv))) return 1;
 	    else if (ret == -1)
 	    {
 		zwarnnam(nam, "select error: %e", NULL, errno);
diff --git a/Src/Zle/zle_params.c b/Src/Zle/zle_params.c
index 0d7b20119..4eb2d455b 100644
--- a/Src/Zle/zle_params.c
+++ b/Src/Zle/zle_params.c
@@ -365,7 +365,7 @@ set_cutbuffer(Param pm, char *x)
 	free(cutbuf.buf);
     cutbuf.flags = 0;
     if (x) {
-	unmetafy(x, &cutbuf.len);
+	unmetafy(x, (int *)&cutbuf.len);
 	cutbuf.buf = zalloc(cutbuf.len);
 	memcpy((char *)cutbuf.buf, x, cutbuf.len);
 	free(x);
@@ -420,7 +420,7 @@ set_killring(Param pm, char **x)
 	for (p = x; *p; p++) {
 	    int len = strlen(*p);
 	    kptr = kring + kpos;
-	    unmetafy(*p, &kptr->len);
+	    unmetafy(*p, (int *)&kptr->len);
 	    kptr->buf = (char *)zalloc(kptr->len);
 	    memcpy(kptr->buf, *p, kptr->len);
 	    zfree(*p, len+1);