]> granicus.if.org Git - python/commitdiff
make DirEntryType and ScandirIteratorType static (closes #23918)
authorBenjamin Peterson <benjamin@python.org>
Sun, 12 Apr 2015 21:56:34 +0000 (17:56 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sun, 12 Apr 2015 21:56:34 +0000 (17:56 -0400)
Modules/posixmodule.c

index 82eae5eec4d70af86cef0f164af41a9f02e0668c..23c006844e17bb2e7530d9504648f7beb3984e0d 100644 (file)
@@ -11692,7 +11692,7 @@ static PyMethodDef DirEntry_methods[] = {
     {NULL}
 };
 
-PyTypeObject DirEntryType = {
+static PyTypeObject DirEntryType = {
     PyVarObject_HEAD_INIT(NULL, 0)
     MODNAME ".DirEntry",                    /* tp_name */
     sizeof(DirEntry),                       /* tp_basicsize */
@@ -12024,7 +12024,7 @@ ScandirIterator_dealloc(ScandirIterator *iterator)
     Py_TYPE(iterator)->tp_free((PyObject *)iterator);
 }
 
-PyTypeObject ScandirIteratorType = {
+static PyTypeObject ScandirIteratorType = {
     PyVarObject_HEAD_INIT(NULL, 0)
     MODNAME ".ScandirIterator",             /* tp_name */
     sizeof(ScandirIterator),                /* tp_basicsize */