summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/Nav.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-25 16:47:51 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-25 16:47:51 (GMT)
commit2f2fffb76689df57a93366121f30e078738c552b (patch)
treeadc4b6d019d1f222530f059592d0804e84954031 /Mac/Modules/Nav.c
parent3f6dd68e2a006ca5ef4161ca395a7503bfba2262 (diff)
downloadcpython-2f2fffb76689df57a93366121f30e078738c552b.zip
cpython-2f2fffb76689df57a93366121f30e078738c552b.tar.gz
cpython-2f2fffb76689df57a93366121f30e078738c552b.tar.bz2
Fix two bad type identifiers that caused crashes on OSX (icglue and Nav).
Silence two innocuous warnings (_File and _collections).
Diffstat (limited to 'Mac/Modules/Nav.c')
-rw-r--r--Mac/Modules/Nav.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c
index 6786ea0..f3d8a48 100644
--- a/Mac/Modules/Nav.c
+++ b/Mac/Modules/Nav.c
@@ -403,8 +403,7 @@ static char Navrrtype__doc__[] =
;
static PyTypeObject Navrrtype = {
- PyObject_HEAD_INIT(&PyType_Type)
- 0, /*ob_size*/
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
"Nav.NavReplyRecord", /*tp_name*/
sizeof(navrrobject), /*tp_basicsize*/
0, /*tp_itemsize*/