From f559611aa14067a0fb9c6b10032bdd644437b134 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 29 Mar 2014 23:10:48 +0000 Subject: ftpserver.pl: Corrected some indentation in senddata() --- tests/ftpserver.pl | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'tests/ftpserver.pl') diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 76b6f4bea..7ebea7c0b 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -517,18 +517,19 @@ sub senddata { } return; } + foreach $l (@_) { - if(!$datadelay) { - # spit it all out at once - sockfiltsecondary $l; - } - else { - # pause between each byte - for (split(//,$l)) { - sockfiltsecondary $_; - select(undef, undef, undef, 0.01); - } - } + if(!$datadelay) { + # spit it all out at once + sockfiltsecondary $l; + } + else { + # pause between each byte + for (split(//,$l)) { + sockfiltsecondary $_; + select(undef, undef, undef, 0.01); + } + } } } -- cgit v1.2.1