SSL Proxy
Revisão | 9850ec6e0a2ceac0384eabe87e0ece67b7e5bf1f (tree) |
---|---|
Hora | 2009-09-30 09:25:59 |
Autor | Shinya TAKEBAYASHI <makoto@kano...> |
Commiter | Shinya TAKEBAYASHI |
(JFTR) Changed casting syntax in the logging procedures.
Changed C-style syntax to C++-style(safer than C-style).
@@ -641,7 +641,7 @@ void sslproxy_session::handle_client_read(const boost::system::error_code& error | ||
641 | 641 | "const boost::system::error_code& error, " |
642 | 642 | "size_t bytes_transferred) : " |
643 | 643 | "error = %d, bytes_transferred = %d, istimeout = %d", |
644 | - error.value(), (int)bytes_transferred, istimeout); | |
644 | + error.value(), static_cast<int>(bytes_transferred), istimeout); | |
645 | 645 | } |
646 | 646 | /*------ DEBUG LOG END ------*/ |
647 | 647 |
@@ -727,7 +727,7 @@ void sslproxy_session::handle_server_write(const boost::system::error_code& erro | ||
727 | 727 | "const boost::system::error_code& error, " |
728 | 728 | "size_t bytes_transferred) : " |
729 | 729 | "error = %d, bytes_transferred = %d, istimeout = %d", |
730 | - error.value(), (int)bytes_transferred, istimeout); | |
730 | + error.value(), static_cast<int>(bytes_transferred), istimeout); | |
731 | 731 | } |
732 | 732 | /*------ DEBUG LOG END ------*/ |
733 | 733 |
@@ -796,7 +796,7 @@ void sslproxy_session::handle_server_read(const boost::system::error_code& error | ||
796 | 796 | "const boost::system::error_code& error, " |
797 | 797 | "size_t bytes_transferred) : " |
798 | 798 | "error = %d, bytes_transferred = %d, istimeout = %d", |
799 | - error.value(), (int)bytes_transferred, istimeout); | |
799 | + error.value(), static_cast<int>(bytes_transferred), istimeout); | |
800 | 800 | } |
801 | 801 | /*------ DEBUG LOG END ------*/ |
802 | 802 |
@@ -876,7 +876,7 @@ void sslproxy_session::handle_client_write(const boost::system::error_code& erro | ||
876 | 876 | "const boost::system::error_code& error, " |
877 | 877 | "size_t bytes_transferred) : " |
878 | 878 | "error = %d, bytes_transferred = %d, istimeout = %d", |
879 | - error.value(), (int)bytes_transferred, istimeout); | |
879 | + error.value(), static_cast<int>(bytes_transferred), istimeout); | |
880 | 880 | } |
881 | 881 | /*------ DEBUG LOG END ------*/ |
882 | 882 |