summaryrefslogtreecommitdiff
path: root/libnm/nm-remote-settings.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-12 14:44:52 +0100
committerThomas Haller <thaller@redhat.com>2016-02-12 15:36:01 +0100
commit2c2d9d2e4cca422a53968cdcb6def420dd77961e (patch)
tree3c05e45abdd2e3442f4b18123a1818b03c999871 /libnm/nm-remote-settings.c
parent97be12b6625e738856814403195b60f7ebc13bfe (diff)
downloadNetworkManager-2c2d9d2e4cca422a53968cdcb6def420dd77961e.tar.gz
build: cleanup default includes
- "gsystem-local-alloc.h" and <gio/gio.h> are already included via "nm-default.h". No need to include them separately. - include "nm-macros-internal.h" via "nm-default.h" and drop all explict includes. - in the modified files, ensure that we always include "config.h" and "nm-default.h" first. As second, include the header file for the current source file (if applicable). Then follow external includes and finally internal nm includes. - include nm headers inside source code files with quotes - internal header files don't need to include default headers. They can savely assume that "nm-default.h" is already included and with it glib, nm-glib.h, nm-macros-internal.h, etc.
Diffstat (limited to 'libnm/nm-remote-settings.c')
-rw-r--r--libnm/nm-remote-settings.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libnm/nm-remote-settings.c b/libnm/nm-remote-settings.c
index 480d7c19f5..305985b175 100644
--- a/libnm/nm-remote-settings.c
+++ b/libnm/nm-remote-settings.c
@@ -21,12 +21,14 @@
#include "config.h"
-#include <string.h>
-#include <nm-dbus-interface.h>
-#include <nm-connection.h>
-
#include "nm-default.h"
#include "nm-remote-settings.h"
+
+#include <string.h>
+
+#include "nm-dbus-interface.h"
+#include "nm-connection.h"
+
#include "nm-client.h"
#include "nm-remote-connection.h"
#include "nm-remote-connection-private.h"
@@ -34,7 +36,6 @@
#include "nm-dbus-helpers.h"
#include "nm-object-private.h"
#include "nm-core-internal.h"
-#include "nm-macros-internal.h"
#include "nmdbus-settings.h"