summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-13 18:10:34 +0200
committerBjoern Jacke <bj@sernet.de>2012-07-05 23:50:54 +0200
commit7abe51f8404f1788d4ed497d26b83b3097073229 (patch)
tree164e532bb088ab0dae4cbf73db982198c4afa291
parenta79496d90cad1695c7b79244337984faa8630c2b (diff)
downloadsamba-7abe51f8404f1788d4ed497d26b83b3097073229.tar.gz
samba-7abe51f8404f1788d4ed497d26b83b3097073229.tar.bz2
samba-7abe51f8404f1788d4ed497d26b83b3097073229.zip
talloc: remove unused variables
found by the IRIX compiler Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jul 5 23:50:54 CEST 2012 on sn-devel-104
-rw-r--r--lib/talloc/pytalloc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 62c6808825..80196c6c77 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -27,7 +27,6 @@ void inittalloc(void);
static PyObject *pytalloc_report_full(PyObject *self, PyObject *args)
{
PyObject *py_obj = Py_None;
- PyTypeObject *type;
if (!PyArg_ParseTuple(args, "|O", &py_obj))
return NULL;
@@ -35,7 +34,6 @@ static PyObject *pytalloc_report_full(PyObject *self, PyObject *args)
if (py_obj == Py_None) {
talloc_report_full(NULL, stdout);
} else {
- type = (PyTypeObject*)PyObject_Type(py_obj);
talloc_report_full(pytalloc_get_mem_ctx(py_obj), stdout);
}
return Py_None;
@@ -52,7 +50,6 @@ static PyObject *pytalloc_enable_null_tracking(PyObject *self)
static PyObject *pytalloc_total_blocks(PyObject *self, PyObject *args)
{
PyObject *py_obj = Py_None;
- PyTypeObject *type;
if (!PyArg_ParseTuple(args, "|O", &py_obj))
return NULL;
@@ -61,8 +58,6 @@ static PyObject *pytalloc_total_blocks(PyObject *self, PyObject *args)
return PyLong_FromLong(talloc_total_blocks(NULL));
}
- type = (PyTypeObject*)PyObject_Type(py_obj);
-
return PyLong_FromLong(talloc_total_blocks(pytalloc_get_mem_ctx(py_obj)));
}