Move a variable to the scope where it is used.
authorayin <ayin>
Wed, 6 Feb 2008 12:05:35 +0000 (12:05 +0000)
committerayin <ayin>
Wed, 6 Feb 2008 12:05:35 +0000 (12:05 +0000)
src/main.C

index 4a820884288d5f27596a0ffcdfe29e18b36691ba..9effb70b9a0a5f0ea2f427a34952487ae5b914af 100644 (file)
@@ -803,7 +803,6 @@ rxvt_term::set_window_color (int idx, const char *color)
 {
 #ifdef XTERM_COLOR_CHANGE
   rxvt_color xcol;
-  int i;
 
   if (color == NULL || *color == '\0')
     return;
@@ -815,7 +814,7 @@ rxvt_term::set_window_color (int idx, const char *color)
   /* handle color aliases */
   if (isdigit (*color))
     {
-      i = atoi (color);
+      int i = atoi (color);
 
       if (i >= 8 && i <= 15)
         {