summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-09-23 18:50:22 -0700
committerVolker Lendecke <vl@samba.org>2012-09-24 08:09:53 +0200
commit13c28787ad22454ddd19e06ae680b8d5abb986c0 (patch)
tree8d9cb81a843ab4a0653e642c9e75ff1e40ce43fd /source3
parent0991aed60c47ecbcb0d08368375f6ae2847c8f59 (diff)
downloadsamba-13c28787ad22454ddd19e06ae680b8d5abb986c0.tar.gz
samba-13c28787ad22454ddd19e06ae680b8d5abb986c0.tar.bz2
samba-13c28787ad22454ddd19e06ae680b8d5abb986c0.zip
s3-pylibsmb: Use Py_RETURN_NONE
Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Sep 24 08:09:53 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/pylibsmb.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c
index e357d0fc05..900d05212c 100644
--- a/source3/libsmb/pylibsmb.c
+++ b/source3/libsmb/pylibsmb.c
@@ -544,9 +544,7 @@ static PyObject *py_cli_get_oplock_break(struct py_cli_state *self,
return result;
}
-
- Py_INCREF(Py_None);
- return Py_None;
+ Py_RETURN_NONE;
}
static void py_cli_state_dealloc(struct py_cli_state *self)
@@ -628,8 +626,7 @@ static PyObject *py_cli_close(struct py_cli_state *self, PyObject *args)
PyErr_SetNTSTATUS(status);
return NULL;
}
- Py_INCREF(Py_None);
- return Py_None;
+ Py_RETURN_NONE;
}
static PyObject *py_cli_write(struct py_cli_state *self, PyObject *args,
@@ -733,8 +730,7 @@ static PyObject *py_cli_ftruncate(struct py_cli_state *self, PyObject *args,
PyErr_SetNTSTATUS(status);
return NULL;
}
- Py_INCREF(Py_None);
- return Py_None;
+ Py_RETURN_NONE;
}
static PyObject *py_cli_delete_on_close(struct py_cli_state *self,
@@ -765,8 +761,7 @@ static PyObject *py_cli_delete_on_close(struct py_cli_state *self,
PyErr_SetNTSTATUS(status);
return NULL;
}
- Py_INCREF(Py_None);
- return Py_None;
+ Py_RETURN_NONE;
}
static PyObject *py_cli_list(struct py_cli_state *self,