From 51e7244269e9c14a920f91a485cda6c785b2fc85 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 21 Dec 2010 18:48:49 +0100 Subject: pytdb: Make PyTdb variable static. --- lib/tdb/pytdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c index 82407e14b0..981459efef 100644 --- a/lib/tdb/pytdb.c +++ b/lib/tdb/pytdb.c @@ -9,7 +9,7 @@ ** NOTE! The following LGPL license applies to the tdb ** library. This does NOT imply that all of Samba is released ** under the LGPL - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either @@ -41,7 +41,7 @@ typedef struct { bool closed; } PyTdbObject; -extern PyTypeObject PyTdb; +staticforward PyTypeObject PyTdb; static void PyErr_SetTDBError(TDB_CONTEXT *tdb) { @@ -538,7 +538,7 @@ static PyMappingMethods tdb_object_mapping = { .mp_subscript = (binaryfunc)obj_getitem, .mp_ass_subscript = (objobjargproc)obj_setitem, }; -PyTypeObject PyTdb = { +static PyTypeObject PyTdb = { .tp_name = "Tdb", .tp_basicsize = sizeof(PyTdbObject), .tp_methods = tdb_object_methods, -- cgit