From: Joseph Sutton Date: Mon, 6 Nov 2023 23:15:37 +0000 (+1300) Subject: s4:librpc: Remove trailing whitespace X-Git-Tag: talloc-2.4.2~796 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a11e0c02a452aac5624f50880725544b38f66caa;p=thirdparty%2Fsamba.git s4:librpc: Remove trailing whitespace Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c index 0daeaf7aab3..74f323c3f56 100644 --- a/source4/librpc/ndr/py_security.c +++ b/source4/librpc/ndr/py_security.c @@ -1,19 +1,19 @@ -/* +/* Unix SMB/CIFS implementation. Samba utility functions Copyright (C) Jelmer Vernooij 2008-2010 - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -36,11 +36,11 @@ static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods) dict = type->tp_dict; for (i = 0; methods[i].ml_name; i++) { PyObject *descr; - if (methods[i].ml_flags & METH_CLASS) + if (methods[i].ml_flags & METH_CLASS) descr = PyCFunction_New(&methods[i], (PyObject *)type); - else + else descr = PyDescr_NewMethod(type, &methods[i]); - PyDict_SetItemString(dict, methods[i].ml_name, + PyDict_SetItemString(dict, methods[i].ml_name, descr); Py_CLEAR(descr); } @@ -451,7 +451,7 @@ static PyObject *py_token_is_anonymous(PyObject *self, PyObject *Py_UNUSED(ignored)) { struct security_token *token = pytalloc_get_ptr(self); - + return PyBool_FromLong(security_token_is_anonymous(token)); } @@ -459,7 +459,7 @@ static PyObject *py_token_is_system(PyObject *self, PyObject *Py_UNUSED(ignored)) { struct security_token *token = pytalloc_get_ptr(self); - + return PyBool_FromLong(security_token_is_system(token)); } @@ -467,7 +467,7 @@ static PyObject *py_token_has_builtin_administrators(PyObject *self, PyObject *Py_UNUSED(ignored)) { struct security_token *token = pytalloc_get_ptr(self); - + return PyBool_FromLong(security_token_has_builtin_administrators(token)); } @@ -475,7 +475,7 @@ static PyObject *py_token_has_nt_authenticated_users(PyObject *self, PyObject *Py_UNUSED(ignored)) { struct security_token *token = pytalloc_get_ptr(self); - + return PyBool_FromLong(security_token_has_nt_authenticated_users(token)); }