From 5646de47e18b8a357dff4e01c2f949c6f288e035 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 12 Apr 2015 17:56:34 -0400 Subject: make DirEntryType and ScandirIteratorType static (closes #23918) --- Modules/posixmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 82eae5e..23c0068 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 */ -- cgit v0.12