mail[Wesnoth-commits] r28446 - /trunk/src/network_worker.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 10, 2008 - 19:33:
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;
 }
 




Related Messages


Powered by MHonArc, Updated Mon Aug 11 07:01:43 2008