Author: mordante
Date: Thu May 21 18:38:22 2009
New Revision: 35795
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35795&view=rev
Log:
Converted the old style casts to c++ style casts.
Modified:
trunk/src/network.cpp
Modified: trunk/src/network.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network.cpp?rev=35795&r1=35794&r2=35795&view=diff
==============================================================================
--- trunk/src/network.cpp (original)
+++ trunk/src/network.cpp Thu May 21 18:38:22 2009
@@ -387,7 +387,8 @@
{
_TCPsocket* raw_sock = reinterpret_cast<_TCPsocket*>(sock);
int no = 0;
- setsockopt(raw_sock->channel, IPPROTO_TCP, TCP_NODELAY, (char*)&no,
sizeof(no));
+ setsockopt(raw_sock->channel,
+ IPPROTO_TCP, TCP_NODELAY, static_cast<char*>(&no),
sizeof(no));
}
#endif
@@ -650,7 +651,8 @@
{
unsigned int start_ticks = SDL_GetTicks();
while(true) {
- const connection res = receive_data(cfg,connection_num,(bool*)0
, bandwidth_in);
+ const connection res = receive_data(
+ cfg,connection_num, static_cast<bool*>(0) ,
bandwidth_in);
if(res != 0) {
return res;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits