Remove general shadowed variables.

We shadow local variables in several places: generally, these changes
make the code clearer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-07-25 16:30:09 +09:30
committed by neil saitug
parent 6a7d40f51a
commit 6fe570820e
25 changed files with 92 additions and 99 deletions

View File

@@ -599,7 +599,7 @@ int main(int argc, char *argv[])
{
setup_locale();
int fd, i;
int fd;
size_t off;
const char *method;
char *cmd, *resp, *idstr;
@@ -715,7 +715,7 @@ int main(int argc, char *argv[])
if (input == KEYWORDS) {
tal_append_fmt(&cmd, "{ ");
for (i = 2; i < argc; i++) {
for (size_t i = 2; i < argc; i++) {
const char *eq = strchr(argv[i], '=');
if (!eq)
@@ -730,7 +730,7 @@ int main(int argc, char *argv[])
tal_append_fmt(&cmd, "} }");
} else {
tal_append_fmt(&cmd, "[ ");
for (i = 2; i < argc; i++)
for (size_t i = 2; i < argc; i++)
add_input(&cmd, argv[i], i, argc);
tal_append_fmt(&cmd, "] }");
}