OSDN Git Service

(JFTR) Changed casting syntax in the logging procedures.
[ultramonkey-l7/sslproxy.git] / src / sslproxysession.cpp
index 69df6a5..399d710 100644 (file)
@@ -641,7 +641,7 @@ void sslproxy_session::handle_client_read(const boost::system::error_code& error
                                "const boost::system::error_code& error, "
                                "size_t bytes_transferred) : "
                                "error = %d, bytes_transferred = %d, istimeout = %d",
-                               error.value(), (int)bytes_transferred, istimeout);
+                               error.value(), static_cast<int>(bytes_transferred), istimeout);
                }
                /*------ DEBUG LOG END ------*/
 
@@ -727,7 +727,7 @@ void sslproxy_session::handle_server_write(const boost::system::error_code& erro
                                "const boost::system::error_code& error, "
                                "size_t bytes_transferred) : "
                                "error = %d, bytes_transferred = %d, istimeout = %d",
-                               error.value(), (int)bytes_transferred, istimeout);
+                               error.value(), static_cast<int>(bytes_transferred), istimeout);
                }
                /*------ DEBUG LOG END ------*/
 
@@ -796,7 +796,7 @@ void sslproxy_session::handle_server_read(const boost::system::error_code& error
                                "const boost::system::error_code& error, "
                                "size_t bytes_transferred) : "
                                "error = %d, bytes_transferred = %d, istimeout = %d",
-                               error.value(), (int)bytes_transferred, istimeout);
+                               error.value(), static_cast<int>(bytes_transferred), istimeout);
                }
                /*------ DEBUG LOG END ------*/
 
@@ -876,7 +876,7 @@ void sslproxy_session::handle_client_write(const boost::system::error_code& erro
                                "const boost::system::error_code& error, "
                                "size_t bytes_transferred) : "
                                "error = %d, bytes_transferred = %d, istimeout = %d",
-                               error.value(), (int)bytes_transferred, istimeout);
+                               error.value(), static_cast<int>(bytes_transferred), istimeout);
                }
                /*------ DEBUG LOG END ------*/