diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/socket.c | 2 | ||||
-rw-r--r-- | Src/Modules/tcp.c | 2 | ||||
-rw-r--r-- | Src/Zle/zle_params.c | 4 |
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); |