summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-21 18:48:49 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-21 19:43:04 +0100
commit51e7244269e9c14a920f91a485cda6c785b2fc85 (patch)
tree953982e769d4167e209ffae9d4b2ac51556b0da9 /lib/tdb
parent7a47aed770c60af56be65bf7c8c64cdb162754ae (diff)
downloadsamba-51e7244269e9c14a920f91a485cda6c785b2fc85.tar.gz
pytdb: Make PyTdb variable static.
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/pytdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c
index 82407e14b0a..981459efef7 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,