about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/socket.c2
-rw-r--r--Src/Modules/tcp.c2
2 files changed, 2 insertions, 2 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);