projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7134029
)
ftpserver.pl: Corrected some indentation in senddata()
author
Steve Holme
<steve_holme@hotmail.com>
Sat, 29 Mar 2014 23:10:48 +0000
(23:10 +0000)
committer
Steve Holme
<steve_holme@hotmail.com>
Sat, 29 Mar 2014 23:17:16 +0000
(23:17 +0000)
tests/ftpserver.pl
patch
|
blob
|
history
diff --git
a/tests/ftpserver.pl
b/tests/ftpserver.pl
index
76b6f4b
..
7ebea7c
100755
(executable)
--- 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);
+
}
+
}
}
}