Skip to content

Commit

Permalink
[backend] small stylistic cleanup of BSSSL.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Mar 15, 2017
1 parent ecdea8b commit 81f6ff7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/backend/BSSSL.pm
Expand Up @@ -95,15 +95,11 @@ sub READLINE {
sub READ {
my ($sslr, undef, $len, $offset) = @_;
my $buf = \$_[1];
my ($r, $rv, $code);
($r, $rv) = Net::SSLeay::read($sslr->[0]);
if ($rv < 0) {
$code = Net::SSLeay::get_error($sslr->[0], $rv);
if ($code == &Net::SSLeay::ERROR_WANT_READ || $code == &Net::SSLeay::ERROR_WANT_WRITE) {
$! = POSIX::EINTR;
}
my ($r, $rv) = Net::SSLeay::read($sslr->[0]);
if ($rv && $rv < 0) {
my $code = Net::SSLeay::get_error($sslr->[0], $rv);
$! = POSIX::EINTR if $code == &Net::SSLeay::ERROR_WANT_READ || $code == &Net::SSLeay::ERROR_WANT_WRITE;
}

return undef unless defined $r;
return length($$buf = $r) unless defined $offset;
my $bl = length($$buf);
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_repserver
Expand Up @@ -55,7 +55,7 @@ use BSXML;
use BSVerify;
use BSHandoff;
use Build;
use BSWatcher ":https";
use BSWatcher ':https';
use BSStdServer;
use BSXPath;
use BSXPathKeys;
Expand Down

0 comments on commit 81f6ff7

Please sign in to comment.