From 45eafb34e3841f9be9035a1430ad5566b4a0333e Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Sat, 30 Sep 2000 22:35:23 +0200
Subject: [PATCH] Avoid 'duplicate local variable X'

Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.12
---
 lib/modules/Protocols.pmod/TELNET.pmod | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/modules/Protocols.pmod/TELNET.pmod b/lib/modules/Protocols.pmod/TELNET.pmod
index daac1e634c..9c804a9212 100644
--- a/lib/modules/Protocols.pmod/TELNET.pmod
+++ b/lib/modules/Protocols.pmod/TELNET.pmod
@@ -1,5 +1,5 @@
 //
-// $Id: TELNET.pmod,v 1.11 2000/09/28 03:38:53 hubbe Exp $
+// $Id: TELNET.pmod,v 1.12 2000/09/30 20:35:23 per Exp $
 //
 // The TELNET protocol as described by RFC 764 and others.
 //
@@ -621,7 +621,7 @@ class protocol
 #endif
 
 #define HANDLE(OPTIONS,WILL,WONT,DO,DONT)						\
-	    case WILL:									\
+	    case WILL:{									\
 	      int option = a[i][1];							\
 	      int state = OPTIONS##_options[option];				       	\
 	      a[i] = a[i][2..];								\
@@ -667,9 +667,9 @@ class protocol
 	      }										\
 	      DWRITE(sprintf("=> " #WILL " %s, state 0x%04x\n", lookup_telopt[option], state));	\
 	      set_##OPTIONS##_option(option,state);					\
-	      break;									\
+	      break;}									\
 											\
-	    case WONT:									\
+	    case WONT:{									\
 	      int option = a[i][1];							\
 	      int state = OPTIONS##_options[option];					\
 	      a[i] = a[i][2..];								\
@@ -710,7 +710,7 @@ class protocol
 											\
 	      DWRITE(sprintf("=> " #WONT " %s, state 0x%04x\n", lookup_telopt[option], state));	\
 	      set_##OPTIONS##_option(option,state);					\
-	      break
+	      }break
 
 
 
@@ -941,7 +941,7 @@ class Readline
 	      {
 		read_cb2=read_cb;
 		term=data[2..];
-//		werror("Enabeling READLINE, term=%s\n",term);
+// 		werror("Enabeling READLINE, term=%s\n",term);
 		readline=Stdio.Readline(this_object(),lower_case(term));
 		readline->set_nonblocking(readline_callback);
 		readline->enable_history(200);
-- 
GitLab