]> granicus.if.org Git - python/commitdiff
Bug #132816: Compiler warning in PYEXPAT.C for extra ';'
authorTim Peters <tim.peters@gmail.com>
Sat, 17 Feb 2001 18:12:50 +0000 (18:12 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 17 Feb 2001 18:12:50 +0000 (18:12 +0000)
Removed trailing ";" in instances of "};" closing code blocks.

Modules/pyexpat.c

index 4f773517f887b7a6850e82f141bd19e9f8ca24e4..39caab99a1144e24090403ed815e6f4d055eb8e9 100644 (file)
@@ -1080,9 +1080,9 @@ init_template_buffer(void)
     int i;
     for (i=0;i<256;i++) {
        template_buffer[i]=i;
-    };
+    }
     template_buffer[256]=0;
-};
+}
 
 int 
 PyUnknownEncodingHandler(void *encodingHandlerData, 
@@ -1097,7 +1097,7 @@ XML_Encoding * info)
     
     if (_u_string==NULL) {
        return result;
-    };
+    }
     
     for (i=0; i<256; i++) {
        Py_UNICODE c = _u_string->str[i] ; // Stupid to access directly, but fast
@@ -1105,8 +1105,8 @@ XML_Encoding * info)
            info->map[i] = -1;
        } else {
            info->map[i] = c;
-       };
-    };
+       }
+    }
     
     info->data = NULL;
     info->convert = NULL;