From 683529456dad7217bfec0dc2163752f7cf6383fe Mon Sep 17 00:00:00 2001
From: tho <tho@wiback.org>
Date: Thu, 22 Jan 2009 14:40:08 +0000
Subject: [PATCH] minor fix for g++ warning

---
 Utils/Termlib/Telnet.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Utils/Termlib/Telnet.cc b/Utils/Termlib/Telnet.cc
index 23e698465..e833e3d64 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;
-- 
GitLab