summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-12-03 13:59:58 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-01-22 10:51:07 +0100
commit02980268e8641a1558c6f475d4669ce4d663504d (patch)
tree99af8a29bb905e0101d0a1e24bc78f55771571ec /lib
parent496b67b27ab9856017a07b2fbcc5ba465f1945b3 (diff)
downloadsamba-02980268e8641a1558c6f475d4669ce4d663504d.tar.gz
samba-02980268e8641a1558c6f475d4669ce4d663504d.tar.xz
samba-02980268e8641a1558c6f475d4669ce4d663504d.zip
Remove use of the "staticforward" macro
This macro was used for compatibility with broken compilers. Since Python 2.3, it is always defined as `static`, and only exists "for source compatibility with old C extensions". Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb-samba/pyldb.c2
-rw-r--r--lib/ldb/pyldb.c14
-rw-r--r--lib/ntdb/pyntdb.c2
-rw-r--r--lib/tevent/pytevent.c12
4 files changed, 15 insertions, 15 deletions
diff --git a/lib/ldb-samba/pyldb.c b/lib/ldb-samba/pyldb.c
index aae25a01e6..6c0d2a76b2 100644
--- a/lib/ldb-samba/pyldb.c
+++ b/lib/ldb-samba/pyldb.c
@@ -33,7 +33,7 @@ void init_ldb(void);
static PyObject *pyldb_module;
static PyObject *py_ldb_error;
-staticforward PyTypeObject PySambaLdb;
+static PyTypeObject PySambaLdb;
static void PyErr_SetLdbError(PyObject *error, int ret, struct ldb_context *ldb_ctx)
{
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c
index ee751b363e..5bcff72a21 100644
--- a/lib/ldb/pyldb.c
+++ b/lib/ldb/pyldb.c
@@ -36,16 +36,16 @@ void initldb(void);
static PyObject *PyLdbMessage_FromMessage(struct ldb_message *msg);
static PyObject *PyExc_LdbError;
-staticforward PyTypeObject PyLdbControl;
-staticforward PyTypeObject PyLdbResult;
-staticforward PyTypeObject PyLdbMessage;
+static PyTypeObject PyLdbControl;
+static PyTypeObject PyLdbResult;
+static PyTypeObject PyLdbMessage;
#define PyLdbMessage_Check(ob) PyObject_TypeCheck(ob, &PyLdbMessage)
-staticforward PyTypeObject PyLdbModule;
-staticforward PyTypeObject PyLdbDn;
+static PyTypeObject PyLdbModule;
+static PyTypeObject PyLdbDn;
#define pyldb_Dn_Check(ob) PyObject_TypeCheck(ob, &PyLdbDn)
-staticforward PyTypeObject PyLdb;
+static PyTypeObject PyLdb;
#define PyLdb_Check(ob) PyObject_TypeCheck(ob, &PyLdb)
-staticforward PyTypeObject PyLdbMessageElement;
+static PyTypeObject PyLdbMessageElement;
#define pyldb_MessageElement_Check(ob) PyObject_TypeCheck(ob, &PyLdbMessageElement)
staticforward PyTypeObject PyLdbTree;
diff --git a/lib/ntdb/pyntdb.c b/lib/ntdb/pyntdb.c
index b2a1f0cbc1..72e626472a 100644
--- a/lib/ntdb/pyntdb.c
+++ b/lib/ntdb/pyntdb.c
@@ -38,7 +38,7 @@ typedef struct {
bool closed;
} PyNtdbObject;
-staticforward PyTypeObject PyNtdb;
+static PyTypeObject PyNtdb;
static void PyErr_SetTDBError(enum NTDB_ERROR e)
{
diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c
index 870f5aad61..af3f9d67df 100644
--- a/lib/tevent/pytevent.c
+++ b/lib/tevent/pytevent.c
@@ -57,12 +57,12 @@ typedef struct {
struct tevent_fd *fd;
} TeventFd_Object;
-staticforward PyTypeObject TeventContext_Type;
-staticforward PyTypeObject TeventReq_Type;
-staticforward PyTypeObject TeventQueue_Type;
-staticforward PyTypeObject TeventSignal_Type;
-staticforward PyTypeObject TeventTimer_Type;
-staticforward PyTypeObject TeventFd_Type;
+static PyTypeObject TeventContext_Type;
+static PyTypeObject TeventReq_Type;
+static PyTypeObject TeventQueue_Type;
+static PyTypeObject TeventSignal_Type;
+static PyTypeObject TeventTimer_Type;
+static PyTypeObject TeventFd_Type;
static int py_context_init(struct tevent_context *ev)
{