Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions subsys/net/lib/zperf/zperf_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ static int shell_cmd_upload(const struct shell *sh, size_t argc,
int start = 0;
size_t opt_cnt = 0;
int ret;
int seconds;

param.options.priority = -1;
is_udp = proto == IPPROTO_UDP;
Expand Down Expand Up @@ -909,7 +910,7 @@ static int shell_cmd_upload(const struct shell *sh, size_t argc,
break;

case 'i':
int seconds = parse_arg(&i, argc, argv);
seconds = parse_arg(&i, argc, argv);

if (is_udp) {
shell_fprintf(sh, SHELL_WARNING,
Expand Down Expand Up @@ -1076,6 +1077,7 @@ static int shell_cmd_upload2(const struct shell *sh, size_t argc,
bool async = false;
int start = 0;
size_t opt_cnt = 0;
int seconds;

is_udp = proto == IPPROTO_UDP;

Expand Down Expand Up @@ -1142,7 +1144,7 @@ static int shell_cmd_upload2(const struct shell *sh, size_t argc,
break;

case 'i':
int seconds = parse_arg(&i, argc, argv);
seconds = parse_arg(&i, argc, argv);

if (is_udp) {
shell_fprintf(sh, SHELL_WARNING,
Expand Down