OSDN Git Service

(JFTR) Changed casting syntax in the logging procedures. cast-fix
authorShinya TAKEBAYASHI <makoto@kanon-net.jp>
Wed, 30 Sep 2009 00:25:59 +0000 (09:25 +0900)
committerShinya TAKEBAYASHI <makoto@kanon-net.jp>
Wed, 30 Sep 2009 00:25:59 +0000 (09:25 +0900)
Changed C-style syntax to C++-style(safer than C-style).

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 ------*/