From: tho Date: Thu, 22 Jan 2009 14:40:08 +0000 (+0000) Subject: minor fix for g++ warning X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ba9bd7483897d462bfe165ac3c788c55dc79476b;p=senf.git minor fix for g++ warning git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1072 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Utils/Termlib/Telnet.cc b/Utils/Termlib/Telnet.cc index 23e6984..e833e3d 100644 --- a/Utils/Termlib/Telnet.cc +++ b/Utils/Termlib/Telnet.cc @@ -402,7 +402,7 @@ prefix_ void senf::term::BaseTelnetProtocol::response(OptInfo & info, bool enabl else if (enabled != info.enabled) { // Request to change the current state if (!enabled || - enabled && (info.wantState == OptInfo::WANTED || info.wantState == OptInfo::ACCEPTED)) { + (enabled && (info.wantState == OptInfo::WANTED || info.wantState == OptInfo::ACCEPTED))) { // accept the request info.optionState = OptInfo::ACKNOWLEDGED; info.enabled = enabled;