diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-02 13:00:47 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-02 13:09:18 +0100 |
commit | b4af7074b789b434f083a89a70c7cf7f8e43f4d4 (patch) | |
tree | 9a6dde9a87d70d747a688df78d8ef5ea0bbc28bb | |
parent | 0c3bc60a01a3353557abe42f6a689c54b9369e7f (diff) | |
download | samba-b4af7074b789b434f083a89a70c7cf7f8e43f4d4.tar.gz samba-b4af7074b789b434f083a89a70c7cf7f8e43f4d4.tar.bz2 samba-b4af7074b789b434f083a89a70c7cf7f8e43f4d4.zip |
s4:py_security: avoid 'this' and use 'py_self' and 'self'
metze
-rw-r--r-- | source4/librpc/ndr/py_security.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c index 93e4a093f3..f89263bba3 100644 --- a/source4/librpc/ndr/py_security.c +++ b/source4/librpc/ndr/py_security.c @@ -41,29 +41,29 @@ static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods) } } -static int py_dom_sid_cmp(PyObject *self, PyObject *py_other) +static int py_dom_sid_cmp(PyObject *py_self, PyObject *py_other) { - struct dom_sid *this = py_talloc_get_ptr(self), *other; + struct dom_sid *self = py_talloc_get_ptr(py_self), *other; other = py_talloc_get_ptr(py_other); if (other == NULL) return -1; - return dom_sid_compare(this, other); + return dom_sid_compare(self, other); } -static PyObject *py_dom_sid_str(PyObject *self) +static PyObject *py_dom_sid_str(PyObject *py_self) { - struct dom_sid *this = py_talloc_get_ptr(self); - char *str = dom_sid_string(NULL, this); + struct dom_sid *self = py_talloc_get_ptr(py_self); + char *str = dom_sid_string(NULL, self); PyObject *ret = PyString_FromString(str); talloc_free(str); return ret; } -static PyObject *py_dom_sid_repr(PyObject *self) +static PyObject *py_dom_sid_repr(PyObject *py_self) { - struct dom_sid *this = py_talloc_get_ptr(self); - char *str = dom_sid_string(NULL, this); + struct dom_sid *self = py_talloc_get_ptr(py_self); + char *str = dom_sid_string(NULL, self); PyObject *ret = PyString_FromFormat("dom_sid('%s')", str); talloc_free(str); return ret; |