Commit b2729f9f authored by Jan Kiszka's avatar Jan Kiszka
Browse files

cobalt/posix/io: Avoid err variable shadowing



It worked, but it is not nice to read.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 50c0367d
......@@ -291,11 +291,11 @@ COBALT_SYSCALL(select, primary,
do {
err = xnselect(selector, out_fds, in_fds, nfds, timeout, mode);
if (err == -ECHRNG) {
int err = __cobalt_select_bind_all(selector, out_fds, nfds);
if (err)
return err;
int bind_err = __cobalt_select_bind_all(selector,
out_fds, nfds);
if (bind_err)
return bind_err;
}
} while (err == -ECHRNG);
......
......@@ -814,9 +814,10 @@ COBALT_SYSCALL32emu(select, nonrestartable,
do {
err = xnselect(selector, out_fds, in_fds, nfds, timeout, mode);
if (err == -ECHRNG) {
int err = __cobalt_select_bind_all(selector, out_fds, nfds);
if (err)
return err;
int bind_err = __cobalt_select_bind_all(selector,
out_fds, nfds);
if (bind_err)
return bind_err;
}
} while (err == -ECHRNG);
......
Supports Markdown
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