diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-06-02 07:07:15 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-06-02 07:07:15 +0000 |
commit | 18246c7def2be102f4f63cfec13906420e3746ac (patch) | |
tree | 5cc79ac770fcd5d70c5437b79a29ef4754faabc7 /ace/SSL | |
parent | 71b0cbad3fe25bbf75fbb2b5903a83cc843bcf08 (diff) | |
download | ATCD-18246c7def2be102f4f63cfec13906420e3746ac.tar.gz |
ChangeLogTag:Wed Jun 2 00:03:20 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/SSL')
-rw-r--r-- | ace/SSL/SSL_Asynch_BIO.cpp | 12 | ||||
-rw-r--r-- | ace/SSL/SSL_SOCK_Stream.cpp | 4 | ||||
-rw-r--r-- | ace/SSL/SSL_SOCK_Stream.i | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/ace/SSL/SSL_Asynch_BIO.cpp b/ace/SSL/SSL_Asynch_BIO.cpp index 380cf18496a..3758670f011 100644 --- a/ace/SSL/SSL_Asynch_BIO.cpp +++ b/ace/SSL/SSL_Asynch_BIO.cpp @@ -80,7 +80,7 @@ ACE_Asynch_BIO_read (BIO * pBIO, char * buf, int len) BIO_clear_retry_flags (pBIO); ACE_SSL_Asynch_Stream * p_stream = - ACE_static_cast (ACE_SSL_Asynch_Stream *, pBIO->ptr); + static_cast<ACE_SSL_Asynch_Stream *> (pBIO->ptr); if (pBIO->init == 0 || p_stream == 0) return -1; @@ -97,7 +97,7 @@ ACE_Asynch_BIO_read (BIO * pBIO, char * buf, int len) int retval = p_stream->ssl_bio_read (buf, - ACE_static_cast (size_t, len), + static_cast<size_t> (len), errval); if (retval >= 0) @@ -115,7 +115,7 @@ ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, int len) BIO_clear_retry_flags (pBIO); ACE_SSL_Asynch_Stream * p_stream = - ACE_static_cast (ACE_SSL_Asynch_Stream *, pBIO->ptr); + static_cast<ACE_SSL_Asynch_Stream *> (pBIO->ptr); if (pBIO->init == 0 || p_stream == 0) return -1; @@ -132,7 +132,7 @@ ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, int len) int retval = p_stream->ssl_bio_write (buf, - ACE_static_cast (size_t, len), + static_cast<size_t> (len), errval); if (retval >= 0) @@ -152,7 +152,7 @@ ACE_Asynch_BIO_ctrl (BIO * pBIO, int cmd, long num, void *ptr) switch (cmd) { case BIO_C_SET_FILE_PTR: - pBIO->shutdown = ACE_static_cast (int, num); + pBIO->shutdown = static_cast<int> (num); pBIO->ptr = ptr; pBIO->init = 1; break; @@ -166,7 +166,7 @@ ACE_Asynch_BIO_ctrl (BIO * pBIO, int cmd, long num, void *ptr) break; case BIO_CTRL_SET_CLOSE: - pBIO->shutdown = ACE_static_cast (int, num); + pBIO->shutdown = static_cast<int> (num); break; case BIO_CTRL_PENDING: diff --git a/ace/SSL/SSL_SOCK_Stream.cpp b/ace/SSL/SSL_SOCK_Stream.cpp index 0450c8f5033..51147c93547 100644 --- a/ace/SSL/SSL_SOCK_Stream.cpp +++ b/ace/SSL/SSL_SOCK_Stream.cpp @@ -76,7 +76,7 @@ ACE_SSL_SOCK_Stream::sendv (const iovec iov[], ACE_Time_Value t; ACE_Time_Value *timeout = - ACE_const_cast (ACE_Time_Value *, max_wait_time); + const_cast<ACE_Time_Value *> (max_wait_time); if (max_wait_time != 0) { @@ -115,7 +115,7 @@ ACE_SSL_SOCK_Stream::sendv (const iovec iov[], // This avoids a subtle problem where "holes" in the data // stream would occur if partial sends of a given buffer in // the iovec array occured. - if (ACE_static_cast (size_t, result) < iov[i].iov_len) + if (static_cast<size_t> (result) < iov[i].iov_len) break; } diff --git a/ace/SSL/SSL_SOCK_Stream.i b/ace/SSL/SSL_SOCK_Stream.i index 30c418b9873..15ab219547e 100644 --- a/ace/SSL/SSL_SOCK_Stream.i +++ b/ace/SSL/SSL_SOCK_Stream.i @@ -34,7 +34,7 @@ ACE_SSL_SOCK_Stream::send_i (const void *buf, ACE_NOTSUP_RETURN (-1); const int bytes_sent = ::SSL_write (this->ssl_, - ACE_static_cast (const char *, buf), + static_cast<const char *> (buf), n); switch (::SSL_get_error (this->ssl_, bytes_sent)) @@ -127,7 +127,7 @@ ACE_SSL_SOCK_Stream::recv_i (void *buf, { if (ACE_BIT_ENABLED (flags, MSG_PEEK)) bytes_read = ::SSL_peek (this->ssl_, - ACE_static_cast (char *, buf), + static_cast<char *> (buf), n); else ACE_NOTSUP_RETURN (-1); @@ -135,7 +135,7 @@ ACE_SSL_SOCK_Stream::recv_i (void *buf, else { bytes_read = ::SSL_read (this->ssl_, - ACE_static_cast (char *, buf), + static_cast<char *> (buf), n); } |