Commit 673f18d0 authored by Andrei Vagin's avatar Andrei Vagin Committed by Pavel Emelyanov

zdtm: fix typo in socket-tcp-.*

CID 174774 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: return 1;.
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 621c83a5
...@@ -130,7 +130,7 @@ int main(int argc, char **argv) ...@@ -130,7 +130,7 @@ int main(int argc, char **argv)
return 1; return 1;
ctl_fd = tcp_init_client(ZDTM_FAMILY, "127.0.0.1", port); ctl_fd = tcp_init_client(ZDTM_FAMILY, "127.0.0.1", port);
if (fd < 0) if (ctl_fd < 0)
return 1; return 1;
if (read(ctl_fd, &size, sizeof(size)) != sizeof(size)) { if (read(ctl_fd, &size, sizeof(size)) != sizeof(size)) {
......
...@@ -125,7 +125,7 @@ int main(int argc, char **argv) ...@@ -125,7 +125,7 @@ int main(int argc, char **argv)
return 1; return 1;
ctl_fd = tcp_init_client(ZDTM_FAMILY, "127.0.0.1", port); ctl_fd = tcp_init_client(ZDTM_FAMILY, "127.0.0.1", port);
if (fd < 0) if (ctl_fd < 0)
return 1; return 1;
size = fill_sock_buf(fd); size = fill_sock_buf(fd);
......
...@@ -128,7 +128,7 @@ int main(int argc, char **argv) ...@@ -128,7 +128,7 @@ int main(int argc, char **argv)
write(fd, TEST_MSG, 2); write(fd, TEST_MSG, 2);
ctl_fd = tcp_init_client(ZDTM_FAMILY, "127.0.0.1", port); ctl_fd = tcp_init_client(ZDTM_FAMILY, "127.0.0.1", port);
if (fd < 0) if (ctl_fd < 0)
return 1; return 1;
if (read(ctl_fd, &c, 1) != 0) { if (read(ctl_fd, &c, 1) != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment