Author: mordante
Date: Sun Aug 10 19:17:46 2008
New Revision: 28446
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28446&view=rev
Log:
Fixed some compiler warnings.
Modified:
trunk/src/network_worker.cpp
Modified: trunk/src/network_worker.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network_worker.cpp?rev=28446&r1=28445&r2=28446&view=diff
==============================================================================
--- trunk/src/network_worker.cpp (original)
+++ trunk/src/network_worker.cpp Sun Aug 10 19:17:46 2008
@@ -523,8 +523,9 @@
scoped_istream file_stream = istream_file(buf->config_error);
SOCKET_STATE result = send_buffer(buf->sock, buf->raw_buffer, 4);
- if (!file_stream->good())
+ if (!file_stream->good()) {
ERR_NW << "send_file: Couldn't open file " << buf->config_error
<< "\n";
+ }
if (result != SOCKET_READY)
{
return result;
@@ -549,9 +550,11 @@
}
}
- if (upto != filesize
- && !file_stream->good())
- ERR_NW << "send_file failed because stream not good from file "
<< buf->config_error << " upto: " << upto << " size: " << filesize << "\n";
+ if (upto != filesize && !file_stream->good()) {
+ ERR_NW << "send_file failed because stream not good from file "
+ << buf->config_error << " upto: " << upto
+ << " size: " << filesize << "\n";
+ }
return result;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits