SMTP: Fix coding style violations.

This commit is contained in:
Augustin Cavalier 2016-05-13 16:09:19 -04:00
parent b87aa6b612
commit 9b5957aae8

View File

@ -908,15 +908,14 @@ SMTPProtocol::Send(const char* to, const char* from, BPositionIO *message)
if (amountUnread <= 0) { // No more data, all we have is in the buffer.
if (bufferLen > 0) {
#ifdef USE_SSL
if (use_ssl) {
SSL_write(ssl,data,bufferLen);
} else {
send (fSocket,data, bufferLen,0);
}
if (use_ssl)
SSL_write(ssl, data, bufferLen);
else
send(fSocket, data, bufferLen, 0);
#else
send (fSocket,data, bufferLen,0);
send(fSocket, data, bufferLen, 0);
#endif
ReportProgress (bufferLen,0);
ReportProgress(bufferLen, 0);
if (bufferLen >= 2)
messageEndedWithCRLF = (data[bufferLen-2] == '\r' &&
data[bufferLen-1] == '\n');
@ -929,17 +928,17 @@ SMTPProtocol::Send(const char* to, const char* from, BPositionIO *message)
if (bufferLen > 3) {
#ifdef USE_SSL
if (use_ssl) {
if (SSL_write(ssl,data,bufferLen - 3) < 0)
if (SSL_write(ssl, data, bufferLen - 3) < 0)
break;
} else {
if (send (fSocket,data, bufferLen - 3,0) < 0)
if (send(fSocket, data, bufferLen - 3, 0) < 0)
break; // Stop when an error happens.
}
#else
if (send (fSocket,data, bufferLen - 3,0) < 0)
if (send(fSocket, data, bufferLen - 3, 0) < 0)
break; // Stop when an error happens.
#endif
ReportProgress (bufferLen - 3,0);
ReportProgress(bufferLen - 3, 0);
memmove (data, data + bufferLen - 3, 3);
bufferLen = 3;
}