diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/credentials/pycredentials.c | 2 | ||||
-rw-r--r-- | source4/auth/gensec/pygensec.c | 2 | ||||
-rw-r--r-- | source4/lib/com/pycom.c | 2 | ||||
-rw-r--r-- | source4/lib/ldb/pyldb.c | 2 | ||||
-rw-r--r-- | source4/lib/messaging/pymessaging.c | 2 | ||||
-rw-r--r-- | source4/lib/registry/pyregistry.c | 2 | ||||
-rw-r--r-- | source4/libnet/py_net.c | 2 | ||||
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 2 | ||||
-rw-r--r-- | source4/param/provision.c | 2 | ||||
-rw-r--r-- | source4/param/pyparam.c | 5 | ||||
-rw-r--r-- | source4/param/pyparam_util.c | 5 | ||||
-rw-r--r-- | source4/scripting/python/modules.c | 2 | ||||
-rw-r--r-- | source4/scripting/python/pyglue.c | 2 | ||||
-rw-r--r-- | source4/scripting/python/uuidmodule.c | 2 | ||||
-rw-r--r-- | source4/web_server/wsgi.c | 2 |
15 files changed, 15 insertions, 21 deletions
diff --git a/source4/auth/credentials/pycredentials.c b/source4/auth/credentials/pycredentials.c index b0433abeab..59a200b09e 100644 --- a/source4/auth/credentials/pycredentials.c +++ b/source4/auth/credentials/pycredentials.c @@ -16,8 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include "pycredentials.h" #include "param/param.h" #include "lib/cmdline/credentials.h" diff --git a/source4/auth/gensec/pygensec.c b/source4/auth/gensec/pygensec.c index c799ffd75c..87c38053a7 100644 --- a/source4/auth/gensec/pygensec.c +++ b/source4/auth/gensec/pygensec.c @@ -16,8 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include "param/pyparam.h" #include "auth/gensec/gensec.h" #include "libcli/util/pyerrors.h" diff --git a/source4/lib/com/pycom.c b/source4/lib/com/pycom.c index d5a07580ea..86e794e173 100644 --- a/source4/lib/com/pycom.c +++ b/source4/lib/com/pycom.c @@ -17,8 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include "lib/com/com.h" #include "librpc/ndr/libndr.h" #include "libcli/util/pyerrors.h" diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 35508c828a..d4a369cc9f 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -26,9 +26,9 @@ License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include <Python.h> #include "replace.h" #include "ldb_private.h" -#include <Python.h> #include "pyldb.h" /* There's no Py_ssize_t in 2.4, apparently */ diff --git a/source4/lib/messaging/pymessaging.c b/source4/lib/messaging/pymessaging.c index 33ccf782e9..33746af26c 100644 --- a/source4/lib/messaging/pymessaging.c +++ b/source4/lib/messaging/pymessaging.c @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include "scripting/python/modules.h" #include "libcli/util/pyerrors.h" #include "librpc/rpc/pyrpc.h" diff --git a/source4/lib/registry/pyregistry.c b/source4/lib/registry/pyregistry.c index f68bfd15ef..e98ac26611 100644 --- a/source4/lib/registry/pyregistry.c +++ b/source4/lib/registry/pyregistry.c @@ -17,9 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <Python.h> #include "includes.h" #include <tevent.h> -#include <Python.h> #include "libcli/util/pyerrors.h" #include "lib/registry/registry.h" #include "scripting/python/modules.h" /* for py_iconv_convenience() */ diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 5136fc54eb..4d3e81ce26 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -17,8 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include "libnet.h" #include "auth/credentials/pycredentials.h" #include "libcli/security/security.h" diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index e50a077625..a24649daca 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -17,8 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include <structmember.h> #include "librpc/rpc/pyrpc.h" #include "librpc/rpc/dcerpc.h" diff --git a/source4/param/provision.c b/source4/param/provision.c index ddf3eec1b9..2f5f78abe6 100644 --- a/source4/param/provision.c +++ b/source4/param/provision.c @@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <Python.h> #include "includes.h" #include "auth/auth.h" #include "lib/ldb_wrap.h" @@ -29,7 +30,6 @@ #include "param/param.h" #include "param/provision.h" #include "param/secrets.h" -#include <Python.h> #include "lib/talloc/pytalloc.h" #include "librpc/rpc/pyrpc.h" #include "scripting/python/modules.h" diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c index 58799f8d37..eb2da11bb0 100644 --- a/source4/param/pyparam.c +++ b/source4/param/pyparam.c @@ -17,13 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdint.h> -#include <stdbool.h> - +#include <Python.h> #include "includes.h" #include "param/param.h" #include "param/loadparm.h" -#include <Python.h> #include "pytalloc.h" /* There's no Py_ssize_t in 2.4, apparently */ diff --git a/source4/param/pyparam_util.c b/source4/param/pyparam_util.c index 9e4a6cdf64..e5c416bf84 100644 --- a/source4/param/pyparam_util.c +++ b/source4/param/pyparam_util.c @@ -17,13 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdint.h> -#include <stdbool.h> - +#include <Python.h> #include "includes.h" #include "param/param.h" #include "param/loadparm.h" -#include <Python.h> #include "pytalloc.h" #define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_type(obj, struct loadparm_context) diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c index e53f4cfaf2..5365c5007d 100644 --- a/source4/scripting/python/modules.c +++ b/source4/scripting/python/modules.c @@ -17,9 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <Python.h> #include "includes.h" #include "scripting/python/modules.h" -#include <Python.h> extern void init_ldb(void); extern void init_security(void); diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c index 753f2df464..71203d301c 100644 --- a/source4/scripting/python/pyglue.c +++ b/source4/scripting/python/pyglue.c @@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <Python.h> #include "includes.h" #include "ldb.h" #include "ldb_errors.h" @@ -27,7 +28,6 @@ #include "lib/ldb-samba/ldif_handlers.h" #include "librpc/ndr/libndr.h" #include "version.h" -#include <Python.h> #include "lib/ldb/pyldb.h" #include "libcli/util/pyerrors.h" #include "libcli/security/security.h" diff --git a/source4/scripting/python/uuidmodule.c b/source4/scripting/python/uuidmodule.c index 98ef9adaa9..3bfe0162ca 100644 --- a/source4/scripting/python/uuidmodule.c +++ b/source4/scripting/python/uuidmodule.c @@ -17,8 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" #include <Python.h> +#include "includes.h" #include "librpc/ndr/libndr.h" static PyObject *uuid_random(PyObject *self, PyObject *args) diff --git a/source4/web_server/wsgi.c b/source4/web_server/wsgi.c index 4d6b441f17..48255bc205 100644 --- a/source4/web_server/wsgi.c +++ b/source4/web_server/wsgi.c @@ -20,12 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <Python.h> #include "includes.h" #include "web_server/web_server.h" #include "../lib/util/dlinklist.h" #include "../lib/util/data_blob.h" #include "lib/tls/tls.h" -#include <Python.h> #ifndef Py_RETURN_NONE #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None |