bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another bug in socket.cpp


From: Tommi Mäkitalo
Subject: another bug in socket.cpp
Date: Mon, 29 Oct 2001 10:53:36 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.4) Gecko/20010923

Hello,

I just found and fixed another bug in socket.cpp. It is just another case of the former bug I reported. Here is my diff. I used my already fixed socket.cpp as a base.

By the way: I included just a -Wall to my compileroptions (gcc). It reports me severel warnings 'unused parameter'. They can be easiliy fixed. What do you think?


Tommi Mäkitalo
1013,1020c1013,1017
<               else if(timeout)
<               {
<                       if(!Socket::isPending(SOCKET_PENDING_INPUT, timeout))
<                       {
<                               clear(ios::failbit | rdstate());
<                               Error(SOCKET_TIMEOUT_ERROR);
<                               return EOF;
<                       }
---
>               else if(timeout && !Socket::isPending(SOCKET_PENDING_INPUT, 
> timeout))
>         {
>             clear(ios::failbit | rdstate());
>             Error(SOCKET_TIMEOUT_ERROR);
>             return EOF;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]