summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-19 14:57:48 +0100
committerThomas Haller <thaller@redhat.com>2016-02-19 17:53:25 +0100
commit8bace23bebcc28396460663203d54aac4ec8ffbf (patch)
tree1655434d48980dbb4a547f6d56a231252aa0181d /src
parent89d6fa6aa93cdc982992c137f0b694cd339c315c (diff)
downloadNetworkManager-8bace23bebcc28396460663203d54aac4ec8ffbf.tar.gz
all: cleanup includes and let "nm-default.h" include "config.h"
- All internal source files (except "examples", which are not internal) should include "config.h" first. As also all internal source files should include "nm-default.h", let "config.h" be included by "nm-default.h" and include "nm-default.h" as first in every source file. We already wanted to include "nm-default.h" before other headers because it might contains some fixes (like "nm-glib.h" compatibility) that is required first. - After including "nm-default.h", we optinally allow for including the corresponding header file for the source file at hand. The idea is to ensure that each header file is self contained. - Don't include "config.h" or "nm-default.h" in any header file (except "nm-sd-adapt.h"). Public headers anyway must not include these headers, and internal headers are never included after "nm-default.h", as of the first previous point. - Include all internal headers with quotes instead of angle brackets. In practice it doesn't matter, because in our public headers we must include other headers with angle brackets. As we use our public headers also to compile our interal source files, effectively the result must be the same. Still do it for consistency. - Except for <config.h> itself. Include it with angle brackets as suggested by https://www.gnu.org/software/autoconf/manual/autoconf.html#Configuration-Headers
Diffstat (limited to 'src')
-rw-r--r--src/NetworkManagerUtils.c3
-rw-r--r--src/devices/adsl/nm-atm-manager.c3
-rw-r--r--src/devices/adsl/nm-device-adsl.c3
-rw-r--r--src/devices/bluetooth/nm-bluez-common.h2
-rw-r--r--src/devices/bluetooth/nm-bluez-device.c3
-rw-r--r--src/devices/bluetooth/nm-bluez-device.h3
-rw-r--r--src/devices/bluetooth/nm-bluez-manager.c3
-rw-r--r--src/devices/bluetooth/nm-bluez4-adapter.c3
-rw-r--r--src/devices/bluetooth/nm-bluez4-manager.c3
-rw-r--r--src/devices/bluetooth/nm-bluez5-dun.c3
-rw-r--r--src/devices/bluetooth/nm-bluez5-manager.c3
-rw-r--r--src/devices/bluetooth/nm-bt-error.c3
-rw-r--r--src/devices/bluetooth/nm-device-bt.c3
-rw-r--r--src/devices/nm-arping-manager.c3
-rw-r--r--src/devices/nm-device-bond.c3
-rw-r--r--src/devices/nm-device-bridge.c3
-rw-r--r--src/devices/nm-device-ethernet-utils.c6
-rw-r--r--src/devices/nm-device-ethernet.c3
-rw-r--r--src/devices/nm-device-factory.c4
-rw-r--r--src/devices/nm-device-generic.c2
-rw-r--r--src/devices/nm-device-infiniband.c3
-rw-r--r--src/devices/nm-device-ip-tunnel.c3
-rw-r--r--src/devices/nm-device-macvlan.c3
-rw-r--r--src/devices/nm-device-tun.c3
-rw-r--r--src/devices/nm-device-veth.c3
-rw-r--r--src/devices/nm-device-vlan.c3
-rw-r--r--src/devices/nm-device-vxlan.c3
-rw-r--r--src/devices/nm-device.c3
-rw-r--r--src/devices/nm-lldp-listener.c2
-rw-r--r--src/devices/team/nm-device-team.c3
-rw-r--r--src/devices/team/nm-team-factory.c3
-rw-r--r--src/devices/tests/test-arping.c3
-rw-r--r--src/devices/tests/test-lldp.c3
-rw-r--r--src/devices/wifi/nm-device-olpc-mesh.c3
-rw-r--r--src/devices/wifi/nm-device-wifi.c3
-rw-r--r--src/devices/wifi/nm-wifi-ap-utils.c3
-rw-r--r--src/devices/wifi/nm-wifi-ap.c3
-rw-r--r--src/devices/wifi/nm-wifi-factory.c2
-rw-r--r--src/devices/wifi/tests/test-wifi-ap-utils.c3
-rw-r--r--src/devices/wwan/nm-device-modem.c3
-rw-r--r--src/devices/wwan/nm-modem-broadband.c3
-rw-r--r--src/devices/wwan/nm-modem-manager.c3
-rw-r--r--src/devices/wwan/nm-modem.c4
-rw-r--r--src/devices/wwan/nm-wwan-factory.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-client.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient-utils.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-dhcpcd.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-helper.c4
-rw-r--r--src/dhcp-manager/nm-dhcp-listener.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-manager.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-systemd.c3
-rw-r--r--src/dhcp-manager/nm-dhcp-utils.c3
-rw-r--r--src/dhcp-manager/tests/test-dhcp-dhclient.c2
-rw-r--r--src/dhcp-manager/tests/test-dhcp-utils.c5
-rw-r--r--src/dns-manager/nm-dns-dnsmasq.c3
-rw-r--r--src/dns-manager/nm-dns-manager.c3
-rw-r--r--src/dns-manager/nm-dns-plugin.c3
-rw-r--r--src/dns-manager/nm-dns-unbound.c2
-rw-r--r--src/dns-manager/nm-dns-utils.c2
-rw-r--r--src/dnsmasq-manager/nm-dnsmasq-manager.c3
-rw-r--r--src/dnsmasq-manager/nm-dnsmasq-utils.c2
-rw-r--r--src/dnsmasq-manager/tests/test-dnsmasq-utils.c3
-rw-r--r--src/main-utils.c3
-rw-r--r--src/main.c3
-rw-r--r--src/nm-activation-request.c4
-rw-r--r--src/nm-active-connection.c3
-rw-r--r--src/nm-audit-manager.c3
-rw-r--r--src/nm-auth-manager.c3
-rw-r--r--src/nm-auth-subject.c3
-rw-r--r--src/nm-auth-subject.h4
-rw-r--r--src/nm-auth-utils.c3
-rw-r--r--src/nm-bus-manager.c3
-rw-r--r--src/nm-bus-manager.h6
-rw-r--r--src/nm-config-data.c3
-rw-r--r--src/nm-config.c3
-rw-r--r--src/nm-connection-provider.c2
-rw-r--r--src/nm-connectivity.c3
-rw-r--r--src/nm-dcb.c3
-rw-r--r--src/nm-default-route-manager.c3
-rw-r--r--src/nm-dhcp4-config.c3
-rw-r--r--src/nm-dhcp6-config.c3
-rw-r--r--src/nm-dispatcher.c3
-rw-r--r--src/nm-exported-object.c3
-rw-r--r--src/nm-firewall-manager.c3
-rw-r--r--src/nm-iface-helper.c3
-rw-r--r--src/nm-ip4-config.c3
-rw-r--r--src/nm-ip6-config.c3
-rw-r--r--src/nm-logging.c3
-rw-r--r--src/nm-manager.c3
-rw-r--r--src/nm-multi-index.c3
-rw-r--r--src/nm-policy.c4
-rw-r--r--src/nm-rfkill-manager.c3
-rw-r--r--src/nm-route-manager.c3
-rw-r--r--src/nm-session-monitor.c3
-rw-r--r--src/nm-sleep-monitor-systemd.c3
-rw-r--r--src/nm-sleep-monitor-upower.c4
-rw-r--r--src/platform/nm-fake-platform.c3
-rw-r--r--src/platform/nm-linux-platform.c3
-rw-r--r--src/platform/nm-platform-utils.h2
-rw-r--r--src/platform/nm-platform.c3
-rw-r--r--src/platform/nmp-object.c3
-rw-r--r--src/platform/tests/monitor.c23
-rw-r--r--src/platform/tests/test-address.c22
-rw-r--r--src/platform/tests/test-cleanup.c22
-rw-r--r--src/platform/tests/test-common.c22
-rw-r--r--src/platform/tests/test-link.c22
-rw-r--r--src/platform/tests/test-nmp-object.c3
-rw-r--r--src/platform/tests/test-route.c25
-rw-r--r--src/platform/wifi/wifi-utils-nl80211.c3
-rw-r--r--src/platform/wifi/wifi-utils-wext.c4
-rw-r--r--src/platform/wifi/wifi-utils.c3
-rw-r--r--src/ppp-manager/nm-ppp-manager.c3
-rw-r--r--src/ppp-manager/nm-pppd-plugin.c1
-rw-r--r--src/rdisc/nm-fake-rdisc.c4
-rw-r--r--src/rdisc/nm-lndp-rdisc.c3
-rw-r--r--src/rdisc/nm-rdisc.c3
-rw-r--r--src/rdisc/tests/test-rdisc-fake.c3
-rw-r--r--src/rdisc/tests/test-rdisc-linux.c3
-rw-r--r--src/settings/nm-agent-manager.c3
-rw-r--r--src/settings/nm-inotify-helper.c3
-rw-r--r--src/settings/nm-secret-agent.c3
-rw-r--r--src/settings/nm-settings-connection.c3
-rw-r--r--src/settings/nm-settings-plugin.c2
-rw-r--r--src/settings/nm-settings.c43
-rw-r--r--src/settings/plugins/ibft/nm-ibft-connection.c2
-rw-r--r--src/settings/plugins/ibft/plugin.c5
-rw-r--r--src/settings/plugins/ibft/reader.c3
-rw-r--r--src/settings/plugins/ibft/tests/test-ibft.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c22
-rw-r--r--src/settings/plugins/ifcfg-rh/plugin.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/reader.c37
-rw-r--r--src/settings/plugins/ifcfg-rh/shvar.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh-utils.c2
-rw-r--r--src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c35
-rw-r--r--src/settings/plugins/ifcfg-rh/utils.c3
-rw-r--r--src/settings/plugins/ifcfg-rh/writer.c3
-rw-r--r--src/settings/plugins/ifnet/connection_parser.c3
-rw-r--r--src/settings/plugins/ifnet/net_parser.c5
-rw-r--r--src/settings/plugins/ifnet/net_utils.c8
-rw-r--r--src/settings/plugins/ifnet/nm-ifnet-connection.c14
-rw-r--r--src/settings/plugins/ifnet/plugin.c6
-rw-r--r--src/settings/plugins/ifnet/tests/test-ifnet.c6
-rw-r--r--src/settings/plugins/ifnet/wpa_parser.c6
-rw-r--r--src/settings/plugins/ifupdown/interface_parser.c5
-rw-r--r--src/settings/plugins/ifupdown/nm-ifupdown-connection.c14
-rw-r--r--src/settings/plugins/ifupdown/parser.c3
-rw-r--r--src/settings/plugins/ifupdown/plugin.c13
-rw-r--r--src/settings/plugins/ifupdown/tests/test-ifupdown.c3
-rw-r--r--src/settings/plugins/keyfile/nm-keyfile-connection.c11
-rw-r--r--src/settings/plugins/keyfile/plugin.c11
-rw-r--r--src/settings/plugins/keyfile/reader.c3
-rw-r--r--src/settings/plugins/keyfile/tests/test-keyfile.c3
-rw-r--r--src/settings/plugins/keyfile/utils.c10
-rw-r--r--src/settings/plugins/keyfile/writer.c3
-rw-r--r--src/supplicant-manager/nm-supplicant-config.c3
-rw-r--r--src/supplicant-manager/nm-supplicant-interface.c3
-rw-r--r--src/supplicant-manager/nm-supplicant-manager.c3
-rw-r--r--src/supplicant-manager/nm-supplicant-settings-verify.c3
-rw-r--r--src/supplicant-manager/tests/test-supplicant-config.c3
-rw-r--r--src/systemd/nm-sd-adapt.c2
-rw-r--r--src/systemd/nm-sd-adapt.h4
-rw-r--r--src/tests/config/nm-test-device.c2
-rw-r--r--src/tests/config/test-config.c4
-rw-r--r--src/tests/test-dcb.c3
-rw-r--r--src/tests/test-general-with-expect.c3
-rw-r--r--src/tests/test-general.c3
-rw-r--r--src/tests/test-ip4-config.c3
-rw-r--r--src/tests/test-ip6-config.c3
-rw-r--r--src/tests/test-resolvconf-capture.c3
-rw-r--r--src/tests/test-route-manager.c3
-rw-r--r--src/tests/test-utils.c2
-rw-r--r--src/tests/test-wired-defname.c8
-rw-r--r--src/vpn-manager/nm-vpn-connection.c3
-rw-r--r--src/vpn-manager/nm-vpn-manager.c3
175 files changed, 402 insertions, 447 deletions
diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c
index 088811b5f2..9e3928f724 100644
--- a/src/NetworkManagerUtils.c
+++ b/src/NetworkManagerUtils.c
@@ -19,7 +19,7 @@
* Copyright 2005 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <fcntl.h>
@@ -33,7 +33,6 @@
#include <linux/if.h>
#include <linux/if_infiniband.h>
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-platform.h"
#include "nm-utils.h"
diff --git a/src/devices/adsl/nm-atm-manager.c b/src/devices/adsl/nm-atm-manager.c
index d3f1423f6d..a3fa4901f0 100644
--- a/src/devices/adsl/nm-atm-manager.c
+++ b/src/devices/adsl/nm-atm-manager.c
@@ -18,13 +18,12 @@
* Copyright (C) 2009 - 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <gudev/gudev.h>
#include <gmodule.h>
-#include "nm-default.h"
#include "nm-atm-manager.h"
#include "nm-setting-adsl.h"
#include "nm-device-adsl.h"
diff --git a/src/devices/adsl/nm-device-adsl.c b/src/devices/adsl/nm-device-adsl.c
index 57afcf463d..e7a91e0ae4 100644
--- a/src/devices/adsl/nm-device-adsl.c
+++ b/src/devices/adsl/nm-device-adsl.c
@@ -18,7 +18,7 @@
* Pantelis Koukousoulas <pktoss@gmail.com>
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/socket.h>
#include <linux/atmdev.h>
@@ -32,7 +32,6 @@
#include <stdlib.h>
#include <string.h>
-#include "nm-default.h"
#include "nm-device-adsl.h"
#include "nm-device-private.h"
#include "nm-enum-types.h"
diff --git a/src/devices/bluetooth/nm-bluez-common.h b/src/devices/bluetooth/nm-bluez-common.h
index 4262fa766c..67810b94ce 100644
--- a/src/devices/bluetooth/nm-bluez-common.h
+++ b/src/devices/bluetooth/nm-bluez-common.h
@@ -21,8 +21,6 @@
#ifndef __NETWORKMANAGER_BLUEZ_COMMON_H__
#define __NETWORKMANAGER_BLUEZ_COMMON_H__
-#include "config.h"
-
#define BLUETOOTH_CONNECT_DUN "dun"
#define BLUETOOTH_CONNECT_NAP "nap"
diff --git a/src/devices/bluetooth/nm-bluez-device.c b/src/devices/bluetooth/nm-bluez-device.c
index 2d18c17b59..71226813de 100644
--- a/src/devices/bluetooth/nm-bluez-device.c
+++ b/src/devices/bluetooth/nm-bluez-device.c
@@ -19,11 +19,10 @@
* Copyright (C) 2013 Intel Corporation.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-bt-error.h"
diff --git a/src/devices/bluetooth/nm-bluez-device.h b/src/devices/bluetooth/nm-bluez-device.h
index 0e54fcb067..c956054074 100644
--- a/src/devices/bluetooth/nm-bluez-device.h
+++ b/src/devices/bluetooth/nm-bluez-device.h
@@ -21,9 +21,6 @@
#ifndef __NETWORKMANAGER_BLUEZ_DEVICE_H__
#define __NETWORKMANAGER_BLUEZ_DEVICE_H__
-
-#include "config.h"
-#include "nm-default.h"
#include "nm-connection.h"
#include "nm-connection-provider.h"
diff --git a/src/devices/bluetooth/nm-bluez-manager.c b/src/devices/bluetooth/nm-bluez-manager.c
index b093d4a2df..f66b5abe58 100644
--- a/src/devices/bluetooth/nm-bluez-manager.c
+++ b/src/devices/bluetooth/nm-bluez-manager.c
@@ -18,14 +18,13 @@
* Copyright (C) 2013 - 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <gmodule.h>
-#include "nm-default.h"
#include "nm-bluez-manager.h"
#include "nm-device-factory.h"
#include "nm-setting-bluetooth.h"
diff --git a/src/devices/bluetooth/nm-bluez4-adapter.c b/src/devices/bluetooth/nm-bluez4-adapter.c
index 04ae833ae9..deeebcb667 100644
--- a/src/devices/bluetooth/nm-bluez4-adapter.c
+++ b/src/devices/bluetooth/nm-bluez4-adapter.c
@@ -18,11 +18,10 @@
* Copyright (C) 2009 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-bluez4-adapter.h"
#include "nm-bluez-device.h"
diff --git a/src/devices/bluetooth/nm-bluez4-manager.c b/src/devices/bluetooth/nm-bluez4-manager.c
index c5ba120c6c..146612a890 100644
--- a/src/devices/bluetooth/nm-bluez4-manager.c
+++ b/src/devices/bluetooth/nm-bluez4-manager.c
@@ -19,13 +19,12 @@
* Copyright (C) 2007 - 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <signal.h>
#include <string.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-bluez-manager.h"
#include "nm-bluez4-manager.h"
#include "nm-bluez4-adapter.h"
diff --git a/src/devices/bluetooth/nm-bluez5-dun.c b/src/devices/bluetooth/nm-bluez5-dun.c
index 875a662fac..4c93feba60 100644
--- a/src/devices/bluetooth/nm-bluez5-dun.c
+++ b/src/devices/bluetooth/nm-bluez5-dun.c
@@ -18,7 +18,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/socket.h>
#include <bluetooth/sdp.h>
@@ -32,7 +32,6 @@
#include "nm-bluez5-dun.h"
#include "nm-bt-error.h"
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
struct _NMBluez5DunContext {
diff --git a/src/devices/bluetooth/nm-bluez5-manager.c b/src/devices/bluetooth/nm-bluez5-manager.c
index c9f5828dfb..e44e87d8a9 100644
--- a/src/devices/bluetooth/nm-bluez5-manager.c
+++ b/src/devices/bluetooth/nm-bluez5-manager.c
@@ -20,13 +20,12 @@
* Copyright (C) 2013 Intel Corporation.
*/
-#include "config.h"
+#include "nm-default.h"
#include <signal.h>
#include <string.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-bluez-manager.h"
#include "nm-bluez5-manager.h"
#include "nm-bluez-device.h"
diff --git a/src/devices/bluetooth/nm-bt-error.c b/src/devices/bluetooth/nm-bt-error.c
index 9c35d8b63b..1839118730 100644
--- a/src/devices/bluetooth/nm-bt-error.c
+++ b/src/devices/bluetooth/nm-bt-error.c
@@ -18,9 +18,8 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-bt-error.h"
GQuark
diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c
index 1e3f9cdc87..e151b79559 100644
--- a/src/devices/bluetooth/nm-device-bt.c
+++ b/src/devices/bluetooth/nm-device-bt.c
@@ -18,12 +18,11 @@
* Copyright (C) 2009 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <string.h>
-#include "nm-default.h"
#include "nm-bluez-common.h"
#include "nm-bluez-device.h"
#include "nm-device-bt.h"
diff --git a/src/devices/nm-arping-manager.c b/src/devices/nm-arping-manager.c
index d8791c4866..ea10609f21 100644
--- a/src/devices/nm-arping-manager.c
+++ b/src/devices/nm-arping-manager.c
@@ -14,13 +14,12 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include "nm-default.h"
#include "nm-arping-manager.h"
#include "nm-platform.h"
#include "nm-utils.h"
diff --git a/src/devices/nm-device-bond.c b/src/devices/nm-device-bond.c
index cef3f9b3b0..cef104e672 100644
--- a/src/devices/nm-device-bond.c
+++ b/src/devices/nm-device-bond.c
@@ -18,12 +18,11 @@
* Copyright 2011 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-device-bond.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c
index e008213906..cc72b003ab 100644
--- a/src/devices/nm-device-bridge.c
+++ b/src/devices/nm-device-bridge.c
@@ -18,11 +18,10 @@
* Copyright 2011 - 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-device-bridge.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
diff --git a/src/devices/nm-device-ethernet-utils.c b/src/devices/nm-device-ethernet-utils.c
index 9165de31ff..d034ddfc77 100644
--- a/src/devices/nm-device-ethernet-utils.c
+++ b/src/devices/nm-device-ethernet-utils.c
@@ -16,12 +16,12 @@
* (C) Copyright 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include <nm-connection.h>
-#include "nm-default.h"
+#include "nm-connection.h"
+
#include "nm-device-ethernet-utils.h"
char *
diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c
index 6f8718a555..5333aba4f7 100644
--- a/src/devices/nm-device-ethernet.c
+++ b/src/devices/nm-device-ethernet.c
@@ -19,7 +19,7 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <netinet/in.h>
#include <string.h>
@@ -29,7 +29,6 @@
#include <gudev/gudev.h>
-#include "nm-default.h"
#include "nm-device-ethernet.h"
#include "nm-device-private.h"
#include "nm-activation-request.h"
diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c
index 1af07d406d..bd0ec002ec 100644
--- a/src/devices/nm-device-factory.c
+++ b/src/devices/nm-device-factory.c
@@ -18,16 +18,14 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
-
#include <gmodule.h>
#include "nm-device-factory.h"
-#include "nm-default.h"
#include "nm-platform.h"
#include "nm-utils.h"
diff --git a/src/devices/nm-device-generic.c b/src/devices/nm-device-generic.c
index 9f3fa90dc0..d90840d272 100644
--- a/src/devices/nm-device-generic.c
+++ b/src/devices/nm-device-generic.c
@@ -18,7 +18,7 @@
* Copyright 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include "nm-device-generic.h"
#include "nm-device-private.h"
diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c
index a2a686e334..79bcb57c9b 100644
--- a/src/devices/nm-device-infiniband.c
+++ b/src/devices/nm-device-infiniband.c
@@ -18,11 +18,10 @@
* Copyright 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <linux/if_infiniband.h>
-#include "nm-default.h"
#include "nm-device-infiniband.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c
index 47e5ab6151..0ba813eb51 100644
--- a/src/devices/nm-device-ip-tunnel.c
+++ b/src/devices/nm-device-ip-tunnel.c
@@ -18,7 +18,7 @@
* Copyright 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <netinet/in.h>
@@ -28,7 +28,6 @@
#include "nm-device-ip-tunnel.h"
#include "nm-device-private.h"
-#include "nm-default.h"
#include "nm-manager.h"
#include "nm-platform.h"
#include "nm-device-factory.h"
diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c
index 4560dd9259..dfb0431b01 100644
--- a/src/devices/nm-device-macvlan.c
+++ b/src/devices/nm-device-macvlan.c
@@ -18,11 +18,10 @@
* Copyright 2013 - 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-device-macvlan.h"
#include "nm-device-private.h"
#include "nm-connection-provider.h"
diff --git a/src/devices/nm-device-tun.c b/src/devices/nm-device-tun.c
index 863ee2eff8..fdb72e453e 100644
--- a/src/devices/nm-device-tun.c
+++ b/src/devices/nm-device-tun.c
@@ -18,13 +18,12 @@
* Copyright 2013 - 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-#include "nm-default.h"
#include "nm-activation-request.h"
#include "nm-device-tun.h"
#include "nm-device-private.h"
diff --git a/src/devices/nm-device-veth.c b/src/devices/nm-device-veth.c
index a1bf0d219d..3b845642b2 100644
--- a/src/devices/nm-device-veth.c
+++ b/src/devices/nm-device-veth.c
@@ -18,7 +18,7 @@
* Copyright 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <stdlib.h>
@@ -29,7 +29,6 @@
#include "nm-device-veth.h"
#include "nm-device-private.h"
-#include "nm-default.h"
#include "nm-manager.h"
#include "nm-platform.h"
#include "nm-device-factory.h"
diff --git a/src/devices/nm-device-vlan.c b/src/devices/nm-device-vlan.c
index fab48d7367..5685b24e7b 100644
--- a/src/devices/nm-device-vlan.c
+++ b/src/devices/nm-device-vlan.c
@@ -18,11 +18,10 @@
* Copyright 2011 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/socket.h>
-#include "nm-default.h"
#include "nm-device-vlan.h"
#include "nm-manager.h"
#include "nm-utils.h"
diff --git a/src/devices/nm-device-vxlan.c b/src/devices/nm-device-vxlan.c
index 9317ef5be0..ff0f234364 100644
--- a/src/devices/nm-device-vxlan.c
+++ b/src/devices/nm-device-vxlan.c
@@ -18,11 +18,10 @@
* Copyright 2013 - 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-device-vxlan.h"
#include "nm-device-private.h"
#include "nm-manager.h"
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 9b0cdfe9d4..c9451e0231 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -19,7 +19,7 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <netinet/in.h>
#include <string.h>
@@ -34,7 +34,6 @@
#include <netlink/route/addr.h>
#include <linux/if_addr.h>
-#include "nm-default.h"
#include "nm-device.h"
#include "nm-device-private.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/nm-lldp-listener.c b/src/devices/nm-lldp-listener.c
index 9118129255..767851bdde 100644
--- a/src/devices/nm-lldp-listener.c
+++ b/src/devices/nm-lldp-listener.c
@@ -18,7 +18,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <net/ethernet.h>
diff --git a/src/devices/team/nm-device-team.c b/src/devices/team/nm-device-team.c
index 2258d99d32..c3d48b41e1 100644
--- a/src/devices/team/nm-device-team.c
+++ b/src/devices/team/nm-device-team.c
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/types.h>
#include <unistd.h>
@@ -27,7 +27,6 @@
#include <teamdctl.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-device-team.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
diff --git a/src/devices/team/nm-team-factory.c b/src/devices/team/nm-team-factory.c
index 5f9e142adb..971efe8722 100644
--- a/src/devices/team/nm-team-factory.c
+++ b/src/devices/team/nm-team-factory.c
@@ -18,7 +18,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <gmodule.h>
@@ -26,7 +26,6 @@
#include "nm-device-factory.h"
#include "nm-team-factory.h"
#include "nm-device-team.h"
-#include "nm-default.h"
#include "nm-platform.h"
#include "nm-core-internal.h"
diff --git a/src/devices/tests/test-arping.c b/src/devices/tests/test-arping.c
index cf70b14800..36e176310a 100644
--- a/src/devices/tests/test-arping.c
+++ b/src/devices/tests/test-arping.c
@@ -18,9 +18,8 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-arping-manager.h"
#include "test-common.h"
diff --git a/src/devices/tests/test-lldp.c b/src/devices/tests/test-lldp.c
index c339d9ca46..7ec0d34e19 100644
--- a/src/devices/tests/test-lldp.c
+++ b/src/devices/tests/test-lldp.c
@@ -18,7 +18,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <fcntl.h>
#include <linux/if_tun.h>
@@ -26,7 +26,6 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include "nm-default.h"
#include "nm-lldp-listener.h"
#include "test-common.h"
diff --git a/src/devices/wifi/nm-device-olpc-mesh.c b/src/devices/wifi/nm-device-olpc-mesh.c
index 23ebd9c822..11da011ee9 100644
--- a/src/devices/wifi/nm-device-olpc-mesh.c
+++ b/src/devices/wifi/nm-device-olpc-mesh.c
@@ -24,7 +24,7 @@
* (C) Copyright 2009 One Laptop per Child
*/
-#include "config.h"
+#include "nm-default.h"
#include <netinet/in.h>
#include <string.h>
@@ -35,7 +35,6 @@
#include <sys/ioctl.h>
#include <errno.h>
-#include "nm-default.h"
#include "nm-device.h"
#include "nm-device-wifi.h"
#include "nm-device-olpc-mesh.h"
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index e4640786b6..18bbfcbf75 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -19,14 +19,13 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
-#include "nm-default.h"
#include "nm-device.h"
#include "nm-device-wifi.h"
#include "nm-device-private.h"
diff --git a/src/devices/wifi/nm-wifi-ap-utils.c b/src/devices/wifi/nm-wifi-ap-utils.c
index fe4b60ac8e..bcf439daa7 100644
--- a/src/devices/wifi/nm-wifi-ap-utils.c
+++ b/src/devices/wifi/nm-wifi-ap-utils.c
@@ -18,12 +18,11 @@
* (C) Copyright 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-wifi-ap-utils.h"
#include "nm-utils.h"
diff --git a/src/devices/wifi/nm-wifi-ap.c b/src/devices/wifi/nm-wifi-ap.c
index 771d670415..307825c6f9 100644
--- a/src/devices/wifi/nm-wifi-ap.c
+++ b/src/devices/wifi/nm-wifi-ap.c
@@ -19,12 +19,11 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-wifi-ap.h"
#include "nm-wifi-ap-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/devices/wifi/nm-wifi-factory.c b/src/devices/wifi/nm-wifi-factory.c
index 7f56dc744c..1c8ca47b52 100644
--- a/src/devices/wifi/nm-wifi-factory.c
+++ b/src/devices/wifi/nm-wifi-factory.c
@@ -18,7 +18,7 @@
* Copyright (C) 2011 - 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <gmodule.h>
diff --git a/src/devices/wifi/tests/test-wifi-ap-utils.c b/src/devices/wifi/tests/test-wifi-ap-utils.c
index b5642fe2c1..70e80ae9b0 100644
--- a/src/devices/wifi/tests/test-wifi-ap-utils.c
+++ b/src/devices/wifi/tests/test-wifi-ap-utils.c
@@ -18,11 +18,10 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-wifi-ap-utils.h"
#include "nm-core-internal.h"
diff --git a/src/devices/wwan/nm-device-modem.c b/src/devices/wwan/nm-device-modem.c
index edecd24d8b..e9c4f02e20 100644
--- a/src/devices/wwan/nm-device-modem.c
+++ b/src/devices/wwan/nm-device-modem.c
@@ -18,11 +18,10 @@
* Copyright (C) 2009 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-device-modem.h"
#include "nm-modem.h"
#include "nm-device-private.h"
diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c
index 44ac102154..6343416cbd 100644
--- a/src/devices/wwan/nm-modem-broadband.c
+++ b/src/devices/wwan/nm-modem-broadband.c
@@ -18,7 +18,7 @@
* Copyright (C) 2012 Aleksander Morgado <aleksander@gnu.org>
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
@@ -26,7 +26,6 @@
#include "nm-modem-broadband.h"
#include "nm-core-internal.h"
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-platform.h"
diff --git a/src/devices/wwan/nm-modem-manager.c b/src/devices/wwan/nm-modem-manager.c
index c28d86adc4..79082c410c 100644
--- a/src/devices/wwan/nm-modem-manager.c
+++ b/src/devices/wwan/nm-modem-manager.c
@@ -20,14 +20,13 @@
* Copyright (C) 2009 Canonical Ltd.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <libmm-glib.h>
#include "nm-modem-manager.h"
-#include "nm-default.h"
#include "nm-dbus-compat.h"
#include "nm-modem.h"
#include "nm-modem-broadband.h"
diff --git a/src/devices/wwan/nm-modem.c b/src/devices/wwan/nm-modem.c
index 709a54f82e..c1736ecf84 100644
--- a/src/devices/wwan/nm-modem.c
+++ b/src/devices/wwan/nm-modem.c
@@ -19,9 +19,8 @@
* Copyright (C) 2009 Novell, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-modem.h"
#include <string.h>
@@ -29,7 +28,6 @@
#include "nm-core-internal.h"
#include "nm-platform.h"
#include "nm-setting-connection.h"
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-device-private.h"
#include "nm-modem-enum-types.h"
diff --git a/src/devices/wwan/nm-wwan-factory.c b/src/devices/wwan/nm-wwan-factory.c
index 2fd9e0bd97..805aea69cf 100644
--- a/src/devices/wwan/nm-wwan-factory.c
+++ b/src/devices/wwan/nm-wwan-factory.c
@@ -18,7 +18,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <gmodule.h>
@@ -29,7 +29,6 @@
#include "nm-setting-cdma.h"
#include "nm-modem-manager.h"
#include "nm-device-modem.h"
-#include "nm-default.h"
#include "nm-platform.h"
static GType nm_wwan_factory_get_type (void);
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c
index 34d7132a58..0aeb6118a5 100644
--- a/src/dhcp-manager/nm-dhcp-client.c
+++ b/src/dhcp-manager/nm-dhcp-client.c
@@ -17,9 +17,8 @@
*
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-dhcp-client.h"
#include <string.h>
diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.c b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
index 6520f7b1d9..bf2df1e034 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient-utils.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
@@ -17,9 +17,8 @@
* Copyright (C) 2011 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-dhcp-dhclient-utils.h"
#include <string.h>
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c
index 972fb506f4..bc4345fe6c 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient.c
@@ -24,6 +24,8 @@
#include <time.h>
#undef _XOPEN_SOURCE
+#include "nm-default.h"
+
#include <string.h>
#include <stdlib.h>
#include <errno.h>
@@ -33,7 +35,6 @@
#include <arpa/inet.h>
#include <ctype.h>
-#include "nm-default.h"
#include "nm-dhcp-dhclient.h"
#include "nm-utils.h"
#include "nm-dhcp-dhclient-utils.h"
diff --git a/src/dhcp-manager/nm-dhcp-dhcpcd.c b/src/dhcp-manager/nm-dhcp-dhcpcd.c
index ebbbb0812a..8060cc6a75 100644
--- a/src/dhcp-manager/nm-dhcp-dhcpcd.c
+++ b/src/dhcp-manager/nm-dhcp-dhcpcd.c
@@ -21,7 +21,7 @@
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
@@ -31,7 +31,6 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-#include "nm-default.h"
#include "nm-dhcp-dhcpcd.h"
#include "nm-dhcp-manager.h"
#include "nm-utils.h"
diff --git a/src/dhcp-manager/nm-dhcp-helper.c b/src/dhcp-manager/nm-dhcp-helper.c
index 15b63d94d0..7667084d74 100644
--- a/src/dhcp-manager/nm-dhcp-helper.c
+++ b/src/dhcp-manager/nm-dhcp-helper.c
@@ -18,15 +18,13 @@
* Copyright (C) 2007 - 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
-#include "nm-default.h"
-
#define NM_DHCP_CLIENT_DBUS_IFACE "org.freedesktop.nm_dhcp_client"
static const char * ignore[] = {"PATH", "SHLVL", "_", "PWD", "dhc_dbus", NULL};
diff --git a/src/dhcp-manager/nm-dhcp-listener.c b/src/dhcp-manager/nm-dhcp-listener.c
index f6fafb8082..595b209748 100644
--- a/src/dhcp-manager/nm-dhcp-listener.c
+++ b/src/dhcp-manager/nm-dhcp-listener.c
@@ -17,7 +17,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/socket.h>
#include <sys/wait.h>
@@ -27,7 +27,6 @@
#include <errno.h>
#include <unistd.h>
-#include "nm-default.h"
#include "nm-dhcp-listener.h"
#include "nm-core-internal.h"
#include "nm-bus-manager.h"
diff --git a/src/dhcp-manager/nm-dhcp-manager.c b/src/dhcp-manager/nm-dhcp-manager.c
index cb74a5bcca..44c3365d2a 100644
--- a/src/dhcp-manager/nm-dhcp-manager.c
+++ b/src/dhcp-manager/nm-dhcp-manager.c
@@ -20,7 +20,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/socket.h>
#include <sys/wait.h>
@@ -32,7 +32,6 @@
#include <fcntl.h>
#include <stdio.h>
-#include "nm-default.h"
#include "nm-dhcp-manager.h"
#include "nm-dhcp-dhclient.h"
#include "nm-dhcp-dhcpcd.h"
diff --git a/src/dhcp-manager/nm-dhcp-systemd.c b/src/dhcp-manager/nm-dhcp-systemd.c
index 3a6de91b2d..7c2bc78f59 100644
--- a/src/dhcp-manager/nm-dhcp-systemd.c
+++ b/src/dhcp-manager/nm-dhcp-systemd.c
@@ -16,7 +16,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
@@ -28,7 +28,6 @@
#include <ctype.h>
#include <net/if_arp.h>
-#include "nm-default.h"
#include "nm-dhcp-systemd.h"
#include "nm-utils.h"
#include "nm-dhcp-utils.h"
diff --git a/src/dhcp-manager/nm-dhcp-utils.c b/src/dhcp-manager/nm-dhcp-utils.c
index 591a0d1f98..be563a6971 100644
--- a/src/dhcp-manager/nm-dhcp-utils.c
+++ b/src/dhcp-manager/nm-dhcp-utils.c
@@ -17,14 +17,13 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <arpa/inet.h>
-#include "nm-default.h"
#include "nm-dhcp-utils.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dhcp-manager/tests/test-dhcp-dhclient.c b/src/dhcp-manager/tests/test-dhcp-dhclient.c
index 04a15af48e..0561d43c14 100644
--- a/src/dhcp-manager/tests/test-dhcp-dhclient.c
+++ b/src/dhcp-manager/tests/test-dhcp-dhclient.c
@@ -18,8 +18,6 @@
*
*/
-#include "config.h"
-
#include "nm-default.h"
#include <string.h>
diff --git a/src/dhcp-manager/tests/test-dhcp-utils.c b/src/dhcp-manager/tests/test-dhcp-utils.c
index 49987c40ca..3805132683 100644
--- a/src/dhcp-manager/tests/test-dhcp-utils.c
+++ b/src/dhcp-manager/tests/test-dhcp-utils.c
@@ -17,15 +17,14 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
-#include <nm-utils.h>
+#include "nm-utils.h"
-#include "nm-default.h"
#include "nm-dhcp-utils.h"
#include "nm-platform.h"
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index 75076ff029..8663dfd81c 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -18,7 +18,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <unistd.h>
@@ -27,7 +27,6 @@
#include <arpa/inet.h>
#include <sys/stat.h>
-#include "nm-default.h"
#include "nm-dns-dnsmasq.h"
#include "nm-utils.h"
#include "nm-ip4-config.h"
diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c
index b785e14507..79d345bed3 100644
--- a/src/dns-manager/nm-dns-manager.c
+++ b/src/dns-manager/nm-dns-manager.c
@@ -21,7 +21,7 @@
* and others
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <fcntl.h>
@@ -35,7 +35,6 @@
#include <linux/fs.h>
-#include "nm-default.h"
#include "nm-utils.h"
#include "nm-core-internal.h"
#include "nm-dns-manager.h"
diff --git a/src/dns-manager/nm-dns-plugin.c b/src/dns-manager/nm-dns-plugin.c
index d473b9debb..8313ed13cd 100644
--- a/src/dns-manager/nm-dns-plugin.c
+++ b/src/dns-manager/nm-dns-plugin.c
@@ -17,7 +17,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
@@ -25,7 +25,6 @@
#include <sys/types.h>
#include <sys/wait.h>
-#include "nm-default.h"
#include "nm-dns-plugin.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dns-manager/nm-dns-unbound.c b/src/dns-manager/nm-dns-unbound.c
index d36e3f8576..4c1af1039f 100644
--- a/src/dns-manager/nm-dns-unbound.c
+++ b/src/dns-manager/nm-dns-unbound.c
@@ -17,7 +17,7 @@
* Copyright (C) 2014 Red Hat, Inc.
* Author: Pavel Å imerda <psimerda@redhat.com>
*/
-#include "config.h"
+#include "nm-default.h"
#include "nm-dns-unbound.h"
#include "NetworkManagerUtils.h"
diff --git a/src/dns-manager/nm-dns-utils.c b/src/dns-manager/nm-dns-utils.c
index 4a5255a421..e920611acc 100644
--- a/src/dns-manager/nm-dns-utils.c
+++ b/src/dns-manager/nm-dns-utils.c
@@ -17,7 +17,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <arpa/inet.h>
#include <string.h>
diff --git a/src/dnsmasq-manager/nm-dnsmasq-manager.c b/src/dnsmasq-manager/nm-dnsmasq-manager.c
index 41184910db..9e388acfb9 100644
--- a/src/dnsmasq-manager/nm-dnsmasq-manager.c
+++ b/src/dnsmasq-manager/nm-dnsmasq-manager.c
@@ -18,7 +18,7 @@
* Copyright (C) 2008 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/types.h>
#include <sys/wait.h>
@@ -28,7 +28,6 @@
#include <arpa/inet.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-dnsmasq-manager.h"
#include "nm-dnsmasq-utils.h"
#include "nm-utils.h"
diff --git a/src/dnsmasq-manager/nm-dnsmasq-utils.c b/src/dnsmasq-manager/nm-dnsmasq-utils.c
index 4394ae7b55..bf8faecd52 100644
--- a/src/dnsmasq-manager/nm-dnsmasq-utils.c
+++ b/src/dnsmasq-manager/nm-dnsmasq-utils.c
@@ -18,7 +18,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
diff --git a/src/dnsmasq-manager/tests/test-dnsmasq-utils.c b/src/dnsmasq-manager/tests/test-dnsmasq-utils.c
index 04bf1b4d74..850ae4f6fb 100644
--- a/src/dnsmasq-manager/tests/test-dnsmasq-utils.c
+++ b/src/dnsmasq-manager/tests/test-dnsmasq-utils.c
@@ -18,11 +18,10 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <arpa/inet.h>
-#include "nm-default.h"
#include "nm-dnsmasq-utils.h"
#include "nm-test-utils.h"
diff --git a/src/main-utils.c b/src/main-utils.c
index 7425d0bc91..e0f254b752 100644
--- a/src/main-utils.c
+++ b/src/main-utils.c
@@ -19,7 +19,7 @@
* Copyright (C) 2005 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <errno.h>
@@ -32,7 +32,6 @@
#include <glib-unix.h>
#include <gmodule.h>
-#include "nm-default.h"
#include "main-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/main.c b/src/main.c
index ee8e0f2d49..12baed1fd9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,7 +19,7 @@
* Copyright (C) 2005 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <getopt.h>
#include <locale.h>
@@ -35,7 +35,6 @@
#include <string.h>
#include <sys/resource.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "NetworkManagerUtils.h"
#include "main-utils.h"
diff --git a/src/nm-activation-request.c b/src/nm-activation-request.c
index 04a39dba8b..17b1d75dca 100644
--- a/src/nm-activation-request.c
+++ b/src/nm-activation-request.c
@@ -19,16 +19,14 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
-
#include "nm-activation-request.h"
-#include "nm-default.h"
#include "nm-setting-wireless-security.h"
#include "nm-setting-8021x.h"
#include "nm-device.h"
diff --git a/src/nm-active-connection.c b/src/nm-active-connection.c
index f7506022a1..f275b3ef70 100644
--- a/src/nm-active-connection.c
+++ b/src/nm-active-connection.c
@@ -18,9 +18,8 @@
* Copyright (C) 2008 - 2014 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-active-connection.h"
#include "nm-dbus-interface.h"
#include "nm-device.h"
diff --git a/src/nm-audit-manager.c b/src/nm-audit-manager.c
index c1bbc2732c..b4cfb20b60 100644
--- a/src/nm-audit-manager.c
+++ b/src/nm-audit-manager.c
@@ -18,9 +18,8 @@
* Copyright 2015 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-audit-manager.h"
#include <errno.h>
diff --git a/src/nm-auth-manager.c b/src/nm-auth-manager.c
index bc519eb199..e2e22aca24 100644
--- a/src/nm-auth-manager.c
+++ b/src/nm-auth-manager.c
@@ -18,11 +18,10 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include "nm-auth-manager.h"
-#include "nm-default.h"
#include "nm-errors.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-auth-subject.c b/src/nm-auth-subject.c
index c4b6e579ac..494d52d3e8 100644
--- a/src/nm-auth-subject.c
+++ b/src/nm-auth-subject.c
@@ -26,14 +26,13 @@
* makes requests, like process identifier and user UID.
*/
-#include "config.h"
+#include "nm-default.h"
#include "nm-auth-subject.h"
#include <string.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-bus-manager.h"
#include "nm-enum-types.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-auth-subject.h b/src/nm-auth-subject.h
index 1682ba7f1a..5f50705810 100644
--- a/src/nm-auth-subject.h
+++ b/src/nm-auth-subject.h
@@ -21,10 +21,6 @@
#ifndef __NETWORKMANAGER_AUTH_SUBJECT_H__
#define __NETWORKMANAGER_AUTH_SUBJECT_H__
-#include "config.h"
-
-#include "nm-default.h"
-
#define NM_TYPE_AUTH_SUBJECT (nm_auth_subject_get_type ())
#define NM_AUTH_SUBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_AUTH_SUBJECT, NMAuthSubject))
#define NM_AUTH_SUBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_AUTH_SUBJECT, NMAuthSubjectClass))
diff --git a/src/nm-auth-utils.c b/src/nm-auth-utils.c
index 8c1c4dac4a..e741546bbc 100644
--- a/src/nm-auth-utils.c
+++ b/src/nm-auth-utils.c
@@ -18,11 +18,10 @@
* Copyright (C) 2010 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-setting-connection.h"
#include "nm-auth-utils.h"
#include "nm-auth-subject.h"
diff --git a/src/nm-bus-manager.c b/src/nm-bus-manager.c
index a82b38836b..b6245b246b 100644
--- a/src/nm-bus-manager.c
+++ b/src/nm-bus-manager.c
@@ -19,7 +19,7 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <unistd.h>
#include <sys/stat.h>
@@ -27,7 +27,6 @@
#include <errno.h>
#include <string.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-bus-manager.h"
#include "nm-core-internal.h"
diff --git a/src/nm-bus-manager.h b/src/nm-bus-manager.h
index 8e72a3ce99..49579d462a 100644
--- a/src/nm-bus-manager.h
+++ b/src/nm-bus-manager.h
@@ -22,10 +22,6 @@
#ifndef __NM_BUS_MANAGER_H__
#define __NM_BUS_MANAGER_H__
-#include "config.h"
-
-#include "nm-default.h"
-
G_BEGIN_DECLS
#define NM_TYPE_BUS_MANAGER (nm_bus_manager_get_type ())
@@ -33,7 +29,7 @@ G_BEGIN_DECLS
#define NM_BUS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), NM_TYPE_BUS_MANAGER, NMBusManagerClass))
#define NM_IS_BUS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NM_TYPE_BUS_MANAGER))
#define NM_IS_BUS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NM_TYPE_BUS_MANAGER))
-#define NM_BUS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NM_TYPE_BUS_MANAGER, NMBusManagerClass))
+#define NM_BUS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NM_TYPE_BUS_MANAGER, NMBusManagerClass))
#define NM_BUS_MANAGER_DBUS_CONNECTION_CHANGED "dbus-connection-changed"
#define NM_BUS_MANAGER_PRIVATE_CONNECTION_NEW "private-connection-new"
diff --git a/src/nm-config-data.c b/src/nm-config-data.c
index 1bbb5c96c8..21f8f3ad32 100644
--- a/src/nm-config-data.c
+++ b/src/nm-config-data.c
@@ -19,9 +19,8 @@
* Copyright (C) 2013 Thomas Bechtold <thomasbechtold@jpberlin.de>
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-config-data.h"
#include <string.h>
diff --git a/src/nm-config.c b/src/nm-config.c
index 2eb27a9885..58fd96cbf4 100644
--- a/src/nm-config.c
+++ b/src/nm-config.c
@@ -19,12 +19,11 @@
* Copyright (C) 2013 Thomas Bechtold <thomasbechtold@jpberlin.de>
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdio.h>
-#include "nm-default.h"
#include "nm-config.h"
#include "nm-utils.h"
#include "nm-device.h"
diff --git a/src/nm-connection-provider.c b/src/nm-connection-provider.c
index 8185b8c60f..2e258bd5b1 100644
--- a/src/nm-connection-provider.c
+++ b/src/nm-connection-provider.c
@@ -13,7 +13,7 @@
* Copyright (C) 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include "nm-connection-provider.h"
#include "nm-utils.h"
diff --git a/src/nm-connectivity.c b/src/nm-connectivity.c
index a2216ee9a8..934727fa9e 100644
--- a/src/nm-connectivity.c
+++ b/src/nm-connectivity.c
@@ -19,14 +19,13 @@
* Copyright (C) 2011 Dan Williams <dcbw@redhat.com>
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#if WITH_CONCHECK
#include <libsoup/soup.h>
#endif
-#include "nm-default.h"
#include "nm-connectivity.h"
#include "nm-config.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-dcb.c b/src/nm-dcb.c
index 109e56e549..d8f3d3e7ec 100644
--- a/src/nm-dcb.c
+++ b/src/nm-dcb.c
@@ -18,12 +18,11 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/wait.h>
#include <string.h>
-#include "nm-default.h"
#include "nm-dcb.h"
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-default-route-manager.c b/src/nm-default-route-manager.c
index a27cb287a9..e2c4eefe45 100644
--- a/src/nm-default-route-manager.c
+++ b/src/nm-default-route-manager.c
@@ -19,11 +19,10 @@
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-default-route-manager.h"
#include "nm-device.h"
#include "nm-vpn-connection.h"
diff --git a/src/nm-dhcp4-config.c b/src/nm-dhcp4-config.c
index 00b9949b36..26c6ab0b43 100644
--- a/src/nm-dhcp4-config.c
+++ b/src/nm-dhcp4-config.c
@@ -18,11 +18,10 @@
* Copyright (C) 2008 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-dhcp4-config.h"
#include "nm-utils.h"
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c
index 8aa8c2e07a..4311ee985e 100644
--- a/src/nm-dhcp6-config.c
+++ b/src/nm-dhcp6-config.c
@@ -18,11 +18,10 @@
* Copyright (C) 2008 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-dhcp6-config.h"
#include "nm-utils.h"
diff --git a/src/nm-dispatcher.c b/src/nm-dispatcher.c
index c226ce7190..c0238fc59a 100644
--- a/src/nm-dispatcher.c
+++ b/src/nm-dispatcher.c
@@ -19,12 +19,11 @@
* Copyright (C) 2005 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <errno.h>
-#include "nm-default.h"
#include "nm-dispatcher.h"
#include "nm-dispatcher-api.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-exported-object.c b/src/nm-exported-object.c
index 8155bab0da..b6d30aaba5 100644
--- a/src/nm-exported-object.c
+++ b/src/nm-exported-object.c
@@ -18,14 +18,13 @@
* Copyright 2014-2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdarg.h>
#include <string.h>
#include "nm-exported-object.h"
#include "nm-bus-manager.h"
-#include "nm-default.h"
static GHashTable *prefix_counters;
static gboolean quitting = FALSE;
diff --git a/src/nm-firewall-manager.c b/src/nm-firewall-manager.c
index 56b52c95e8..7babff3ce0 100644
--- a/src/nm-firewall-manager.c
+++ b/src/nm-firewall-manager.c
@@ -18,9 +18,8 @@
* Copyright (C) 2011 - 2015 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-firewall-manager.h"
#include <string.h>
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c
index 069a68f825..fc3292ae8a 100644
--- a/src/nm-iface-helper.c
+++ b/src/nm-iface-helper.c
@@ -18,7 +18,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <glib-unix.h>
#include <getopt.h>
@@ -36,7 +36,6 @@
* Forward declare if_nametoindex. */
extern unsigned int if_nametoindex (const char *__ifname);
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-linux-platform.h"
#include "nm-dhcp-manager.h"
diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c
index 3973011eca..9c2557f939 100644
--- a/src/nm-ip4-config.c
+++ b/src/nm-ip4-config.c
@@ -19,9 +19,8 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-ip4-config.h"
#include <string.h>
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c
index a7fc1155c8..fa3541a3d8 100644
--- a/src/nm-ip6-config.c
+++ b/src/nm-ip6-config.c
@@ -19,9 +19,8 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-ip6-config.h"
#include <string.h>
diff --git a/src/nm-logging.c b/src/nm-logging.c
index 9d156db6a1..c9006eb7a1 100644
--- a/src/nm-logging.c
+++ b/src/nm-logging.c
@@ -19,7 +19,7 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <dlfcn.h>
#include <syslog.h>
@@ -37,7 +37,6 @@
#include <systemd/sd-journal.h>
#endif
-#include "nm-default.h"
#include "nm-errors.h"
#include "NetworkManagerUtils.h"
#include "nm-linux-platform.h"
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 648faf4df0..7f414e8faf 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -19,7 +19,7 @@
* Copyright (C) 2007 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <fcntl.h>
@@ -27,7 +27,6 @@
#include <string.h>
#include <unistd.h>
-#include "nm-default.h"
#include "nm-manager.h"
#include "nm-bus-manager.h"
#include "nm-vpn-manager.h"
diff --git a/src/nm-multi-index.c b/src/nm-multi-index.c
index fe0c225580..6a22875336 100644
--- a/src/nm-multi-index.c
+++ b/src/nm-multi-index.c
@@ -18,9 +18,8 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nm-multi-index.h"
#include <string.h>
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 05f7edf4db..68e50a1c1a 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -19,15 +19,13 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
-
-#include "nm-default.h"
#include "nm-policy.h"
#include "NetworkManagerUtils.h"
#include "nm-activation-request.h"
diff --git a/src/nm-rfkill-manager.c b/src/nm-rfkill-manager.c
index 76703b20c7..1674265631 100644
--- a/src/nm-rfkill-manager.c
+++ b/src/nm-rfkill-manager.c
@@ -18,13 +18,12 @@
* Copyright (C) 2009 - 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <gudev/gudev.h>
#include "nm-rfkill-manager.h"
-#include "nm-default.h"
typedef struct {
GUdevClient *client;
diff --git a/src/nm-route-manager.c b/src/nm-route-manager.c
index 3f43ceb650..84811d5ac7 100644
--- a/src/nm-route-manager.c
+++ b/src/nm-route-manager.c
@@ -18,7 +18,7 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
@@ -26,7 +26,6 @@
#include "nm-platform.h"
#include "nmp-object.h"
#include "nm-core-internal.h"
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
/* if within half a second after adding an IP address a matching device-route shows
diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c
index 461195b005..d8b046e653 100644
--- a/src/nm-session-monitor.c
+++ b/src/nm-session-monitor.c
@@ -19,14 +19,13 @@
* Author: Matthias Clasen
* Author: Pavel Å imerda <psimerda@redhat.com>
*/
-#include "config.h"
+#include "nm-default.h"
#include <pwd.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
-#include "nm-default.h"
#include "nm-session-monitor.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-sleep-monitor-systemd.c b/src/nm-sleep-monitor-systemd.c
index 12db56b296..064a7035dc 100644
--- a/src/nm-sleep-monitor-systemd.c
+++ b/src/nm-sleep-monitor-systemd.c
@@ -17,14 +17,13 @@
* Author: Matthias Clasen <mclasen@redhat.com>
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <gio/gunixfdlist.h>
-#include "nm-default.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/nm-sleep-monitor-upower.c b/src/nm-sleep-monitor-upower.c
index c65609cf40..5f0ff24552 100644
--- a/src/nm-sleep-monitor-upower.c
+++ b/src/nm-sleep-monitor-upower.c
@@ -17,12 +17,12 @@
* Author: Matthias Clasen <mclasen@redhat.com>
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
-#include "nm-default.h"
+
#include "nm-core-internal.h"
#include "nm-sleep-monitor.h"
diff --git a/src/platform/nm-fake-platform.c b/src/platform/nm-fake-platform.c
index 7fef696580..99ba6acabb 100644
--- a/src/platform/nm-fake-platform.c
+++ b/src/platform/nm-fake-platform.c
@@ -18,7 +18,7 @@
* Copyright (C) 2012–2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <unistd.h>
@@ -30,7 +30,6 @@
#include "nmp-object.h"
#include "NetworkManagerUtils.h"
#include "nm-fake-platform.h"
-#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index f2d87fc587..1ebffd0007 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -17,7 +17,7 @@
*
* Copyright (C) 2012-2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <unistd.h>
@@ -48,7 +48,6 @@
#include "nm-platform-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
-#include "nm-default.h"
#include "wifi/wifi-utils.h"
#include "wifi/wifi-utils-wext.h"
#include "nmp-object.h"
diff --git a/src/platform/nm-platform-utils.h b/src/platform/nm-platform-utils.h
index 9265ff242a..a9d29c0478 100644
--- a/src/platform/nm-platform-utils.h
+++ b/src/platform/nm-platform-utils.h
@@ -21,8 +21,6 @@
#ifndef __NM_PLATFORM_UTILS_H__
#define __NM_PLATFORM_UTILS_H__
-#include "config.h"
-
#include <gudev/gudev.h>
#include "nm-platform.h"
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index 24492af86e..d4ba6ee4e5 100644
--- a/src/platform/nm-platform.c
+++ b/src/platform/nm-platform.c
@@ -18,7 +18,7 @@
* Copyright (C) 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <errno.h>
@@ -38,7 +38,6 @@
#include "nm-platform-utils.h"
#include "nmp-object.h"
#include "NetworkManagerUtils.h"
-#include "nm-default.h"
#include "nm-enum-types.h"
#include "nm-core-internal.h"
diff --git a/src/platform/nmp-object.c b/src/platform/nmp-object.c
index 892fd9dde1..aa5d918c98 100644
--- a/src/platform/nmp-object.c
+++ b/src/platform/nmp-object.c
@@ -18,11 +18,10 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <unistd.h>
-#include "nm-default.h"
#include "nmp-object.h"
#include "nm-platform-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/platform/tests/monitor.c b/src/platform/tests/monitor.c
index 5cc3114cd9..3af34be42c 100644
--- a/src/platform/tests/monitor.c
+++ b/src/platform/tests/monitor.c
@@ -1,9 +1,28 @@
-#include "config.h"
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager audit support
+ *
+ * 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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2015 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
#include <stdlib.h>
#include <syslog.h>
-#include "nm-default.h"
#include "nm-linux-platform.h"
#include "nm-test-utils.h"
diff --git a/src/platform/tests/test-address.c b/src/platform/tests/test-address.c
index 681343377c..3b52a7be7c 100644
--- a/src/platform/tests/test-address.c
+++ b/src/platform/tests/test-address.c
@@ -1,4 +1,24 @@
-#include "config.h"
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager audit support
+ *
+ * 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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2015 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
#include "test-common.h"
diff --git a/src/platform/tests/test-cleanup.c b/src/platform/tests/test-cleanup.c
index 9e624a028a..4025467337 100644
--- a/src/platform/tests/test-cleanup.c
+++ b/src/platform/tests/test-cleanup.c
@@ -1,4 +1,24 @@
-#include "config.h"
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager audit support
+ *
+ * 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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2016 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
#include "test-common.h"
diff --git a/src/platform/tests/test-common.c b/src/platform/tests/test-common.c
index 67468539f1..23ad7feae3 100644
--- a/src/platform/tests/test-common.c
+++ b/src/platform/tests/test-common.c
@@ -1,4 +1,24 @@
-#include "config.h"
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager audit support
+ *
+ * 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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2016 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
#include <sys/mount.h>
#include <sched.h>
diff --git a/src/platform/tests/test-link.c b/src/platform/tests/test-link.c
index 6e6e4418ad..3fa5ad5001 100644
--- a/src/platform/tests/test-link.c
+++ b/src/platform/tests/test-link.c
@@ -1,4 +1,24 @@
-#include "config.h"
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager audit support
+ *
+ * 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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2016 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
#include <sched.h>
diff --git a/src/platform/tests/test-nmp-object.c b/src/platform/tests/test-nmp-object.c
index f65ffc2ddb..3b44abb8d6 100644
--- a/src/platform/tests/test-nmp-object.c
+++ b/src/platform/tests/test-nmp-object.c
@@ -18,9 +18,8 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "nmp-object.h"
#include "nm-test-utils.h"
diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c
index 60a0c15c3d..4e95773db1 100644
--- a/src/platform/tests/test-route.c
+++ b/src/platform/tests/test-route.c
@@ -1,11 +1,32 @@
-#include "config.h"
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager audit support
+ *
+ * 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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2016 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
#include <linux/rtnetlink.h>
#include "test-common.h"
-#include "nm-test-utils.h"
#include "NetworkManagerUtils.h"
+#include "nm-test-utils.h"
+
#define DEVICE_NAME "nm-test-device"
static void
diff --git a/src/platform/wifi/wifi-utils-nl80211.c b/src/platform/wifi/wifi-utils-nl80211.c
index e05104f374..79f217a8d5 100644
--- a/src/platform/wifi/wifi-utils-nl80211.c
+++ b/src/platform/wifi/wifi-utils-nl80211.c
@@ -20,7 +20,7 @@
* Copyright (C) 2011 Intel Corporation. All rights reserved.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <string.h>
@@ -32,7 +32,6 @@
#include <netlink/msg.h>
#include <linux/nl80211.h>
-#include "nm-default.h"
#include "wifi-utils-private.h"
#include "wifi-utils-nl80211.h"
#include "nm-platform.h"
diff --git a/src/platform/wifi/wifi-utils-wext.c b/src/platform/wifi/wifi-utils-wext.c
index 85a387fae2..029601e4b2 100644
--- a/src/platform/wifi/wifi-utils-wext.c
+++ b/src/platform/wifi/wifi-utils-wext.c
@@ -19,7 +19,7 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <string.h>
@@ -28,8 +28,6 @@
#include <unistd.h>
#include <math.h>
-
-#include "nm-default.h"
#include "wifi-utils-private.h"
#include "wifi-utils-wext.h"
#include "nm-utils.h"
diff --git a/src/platform/wifi/wifi-utils.c b/src/platform/wifi/wifi-utils.c
index 5f2f61b0d0..38e5a0545e 100644
--- a/src/platform/wifi/wifi-utils.c
+++ b/src/platform/wifi/wifi-utils.c
@@ -19,13 +19,12 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
-#include "nm-default.h"
#include "wifi-utils.h"
#include "wifi-utils-private.h"
#include "wifi-utils-nl80211.h"
diff --git a/src/ppp-manager/nm-ppp-manager.c b/src/ppp-manager/nm-ppp-manager.c
index 94e5f8c924..1578e595fc 100644
--- a/src/ppp-manager/nm-ppp-manager.c
+++ b/src/ppp-manager/nm-ppp-manager.c
@@ -19,7 +19,7 @@
* Copyright (C) 2008 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/types.h>
#include <sys/wait.h>
@@ -42,7 +42,6 @@
#include <linux/if.h>
#include <linux/if_ppp.h>
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-ppp-manager.h"
#include "nm-platform.h"
diff --git a/src/ppp-manager/nm-pppd-plugin.c b/src/ppp-manager/nm-pppd-plugin.c
index 1f1016ae8a..be4dd1855b 100644
--- a/src/ppp-manager/nm-pppd-plugin.c
+++ b/src/ppp-manager/nm-pppd-plugin.c
@@ -20,6 +20,7 @@
*/
#include "config.h"
+#define ___CONFIG_H__
#include <string.h>
#include <pppd/pppd.h>
diff --git a/src/rdisc/nm-fake-rdisc.c b/src/rdisc/nm-fake-rdisc.c
index 001fd9388e..6a1585b31f 100644
--- a/src/rdisc/nm-fake-rdisc.c
+++ b/src/rdisc/nm-fake-rdisc.c
@@ -18,7 +18,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
@@ -26,8 +26,6 @@
#include "nm-fake-rdisc.h"
#include "nm-rdisc-private.h"
-#include "nm-default.h"
-
#define _NMLOG_PREFIX_NAME "rdisc-fake"
typedef struct {
diff --git a/src/rdisc/nm-lndp-rdisc.c b/src/rdisc/nm-lndp-rdisc.c
index 46000994ba..0686346215 100644
--- a/src/rdisc/nm-lndp-rdisc.c
+++ b/src/rdisc/nm-lndp-rdisc.c
@@ -18,7 +18,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
@@ -30,7 +30,6 @@
#include "nm-rdisc-private.h"
#include "NetworkManagerUtils.h"
-#include "nm-default.h"
#include "nm-platform.h"
#define _NMLOG_PREFIX_NAME "rdisc-lndp"
diff --git a/src/rdisc/nm-rdisc.c b/src/rdisc/nm-rdisc.c
index 6133ae2826..82aece3095 100644
--- a/src/rdisc/nm-rdisc.c
+++ b/src/rdisc/nm-rdisc.c
@@ -18,7 +18,7 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <arpa/inet.h>
@@ -27,7 +27,6 @@
#include "nm-rdisc.h"
#include "nm-rdisc-private.h"
-#include "nm-default.h"
#include "nm-utils.h"
#include <nm-setting-ip6-config.h>
diff --git a/src/rdisc/tests/test-rdisc-fake.c b/src/rdisc/tests/test-rdisc-fake.c
index ad045cff01..00a98dcadf 100644
--- a/src/rdisc/tests/test-rdisc-fake.c
+++ b/src/rdisc/tests/test-rdisc-fake.c
@@ -18,14 +18,13 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <syslog.h>
#include "nm-rdisc.h"
#include "nm-fake-rdisc.h"
-#include "nm-default.h"
#include "nm-fake-platform.h"
diff --git a/src/rdisc/tests/test-rdisc-linux.c b/src/rdisc/tests/test-rdisc-linux.c
index b93c50a77c..bbdb5fb842 100644
--- a/src/rdisc/tests/test-rdisc-linux.c
+++ b/src/rdisc/tests/test-rdisc-linux.c
@@ -18,14 +18,13 @@
* Copyright (C) 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <syslog.h>
#include "nm-rdisc.h"
#include "nm-lndp-rdisc.h"
-#include "nm-default.h"
#include "nm-linux-platform.h"
diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c
index ee1c6202bc..bc09e03167 100644
--- a/src/settings/nm-agent-manager.c
+++ b/src/settings/nm-agent-manager.c
@@ -18,12 +18,11 @@
* Copyright (C) 2010 - 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <pwd.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-agent-manager.h"
#include "nm-secret-agent.h"
diff --git a/src/settings/nm-inotify-helper.c b/src/settings/nm-inotify-helper.c
index 681933cd29..ce15246c5a 100644
--- a/src/settings/nm-inotify-helper.c
+++ b/src/settings/nm-inotify-helper.c
@@ -18,14 +18,13 @@
* (C) Copyright 2008 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <unistd.h>
#include <string.h>
#include <sys/inotify.h>
#include <errno.h>
-#include "nm-default.h"
#include "nm-inotify-helper.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/nm-secret-agent.c b/src/settings/nm-secret-agent.c
index 89e84c2690..bfa7b50626 100644
--- a/src/settings/nm-secret-agent.c
+++ b/src/settings/nm-secret-agent.c
@@ -18,12 +18,11 @@
* Copyright (C) 2010 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/types.h>
#include <pwd.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-secret-agent.h"
#include "nm-bus-manager.h"
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c
index 287cb69a7c..a1695b3461 100644
--- a/src/settings/nm-settings-connection.c
+++ b/src/settings/nm-settings-connection.c
@@ -19,11 +19,10 @@
* Copyright 2008 - 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-dbus-interface.h"
#include "nm-settings-connection.h"
#include "nm-session-monitor.h"
diff --git a/src/settings/nm-settings-plugin.c b/src/settings/nm-settings-plugin.c
index 0bce8957d0..2023bc17d5 100644
--- a/src/settings/nm-settings-plugin.c
+++ b/src/settings/nm-settings-plugin.c
@@ -19,7 +19,7 @@
* Copyright (C) 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include "nm-settings-plugin.h"
#include "nm-settings-connection.h"
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
index 377d52793c..ee48e7119f 100644
--- a/src/settings/nm-settings.c
+++ b/src/settings/nm-settings.c
@@ -23,7 +23,7 @@
* (C) Copyright 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <unistd.h>
#include <sys/stat.h>
@@ -36,33 +36,32 @@
#include <selinux/selinux.h>
#endif
-#include <nm-dbus-interface.h>
-#include <nm-connection.h>
-#include <nm-setting-8021x.h>
-#include <nm-setting-bluetooth.h>
-#include <nm-setting-cdma.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-gsm.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-setting-ip6-config.h>
-#include <nm-setting-olpc-mesh.h>
-#include <nm-setting-ppp.h>
-#include <nm-setting-pppoe.h>
-#include <nm-setting-serial.h>
-#include <nm-setting-vpn.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-adsl.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-setting-bond.h>
-#include <nm-utils.h>
+#include "nm-dbus-interface.h"
+#include "nm-connection.h"
+#include "nm-setting-8021x.h"
+#include "nm-setting-bluetooth.h"
+#include "nm-setting-cdma.h"
+#include "nm-setting-connection.h"
+#include "nm-setting-gsm.h"
+#include "nm-setting-ip4-config.h"
+#include "nm-setting-ip6-config.h"
+#include "nm-setting-olpc-mesh.h"
+#include "nm-setting-ppp.h"
+#include "nm-setting-pppoe.h"
+#include "nm-setting-serial.h"
+#include "nm-setting-vpn.h"
+#include "nm-setting-wired.h"
+#include "nm-setting-adsl.h"
+#include "nm-setting-wireless.h"
+#include "nm-setting-wireless-security.h"
+#include "nm-setting-bond.h"
+#include "nm-utils.h"
#include "nm-core-internal.h"
#include "nm-device-ethernet.h"
#include "nm-settings.h"
#include "nm-settings-connection.h"
#include "nm-settings-plugin.h"
-#include "nm-default.h"
#include "nm-bus-manager.h"
#include "nm-auth-utils.h"
#include "nm-auth-subject.h"
diff --git a/src/settings/plugins/ibft/nm-ibft-connection.c b/src/settings/plugins/ibft/nm-ibft-connection.c
index c6a9054e47..95495b5cab 100644
--- a/src/settings/plugins/ibft/nm-ibft-connection.c
+++ b/src/settings/plugins/ibft/nm-ibft-connection.c
@@ -18,7 +18,7 @@
* Copyright 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <net/ethernet.h>
diff --git a/src/settings/plugins/ibft/plugin.c b/src/settings/plugins/ibft/plugin.c
index 555725d1a3..6f9b8c82c9 100644
--- a/src/settings/plugins/ibft/plugin.c
+++ b/src/settings/plugins/ibft/plugin.c
@@ -18,7 +18,7 @@
* Copyright 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <unistd.h>
@@ -26,9 +26,8 @@
#include <gmodule.h>
-#include <nm-setting-connection.h>
+#include "nm-setting-connection.h"
-#include "nm-default.h"
#include "nm-settings-plugin.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/ibft/reader.c b/src/settings/plugins/ibft/reader.c
index bd21a571bb..c39d875cf9 100644
--- a/src/settings/plugins/ibft/reader.c
+++ b/src/settings/plugins/ibft/reader.c
@@ -18,7 +18,7 @@
* Copyright 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <string.h>
@@ -31,7 +31,6 @@
#include <sys/ioctl.h>
#include <unistd.h>
-#include "nm-default.h"
#include "nm-core-internal.h"
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/ibft/tests/test-ibft.c b/src/settings/plugins/ibft/tests/test-ibft.c
index c7aef050db..a9085478cd 100644
--- a/src/settings/plugins/ibft/tests/test-ibft.c
+++ b/src/settings/plugins/ibft/tests/test-ibft.c
@@ -18,7 +18,7 @@
* Copyright 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <stdarg.h>
@@ -33,7 +33,6 @@
#include "NetworkManagerUtils.h"
#include "reader.h"
-#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c b/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
index 336d9d662f..c524e0f9c8 100644
--- a/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
+++ b/src/settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
@@ -18,25 +18,23 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <glib/gstdio.h>
-#include <nm-dbus-interface.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-gsm.h>
-#include <nm-setting-cdma.h>
-#include <nm-setting-pppoe.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-setting-8021x.h>
+#include "nm-dbus-interface.h"
+#include "nm-setting-connection.h"
+#include "nm-setting-wired.h"
+#include "nm-setting-wireless.h"
+#include "nm-setting-gsm.h"
+#include "nm-setting-cdma.h"
+#include "nm-setting-pppoe.h"
+#include "nm-setting-wireless-security.h"
+#include "nm-setting-8021x.h"
#include "nm-platform.h"
-#include "nm-default.h"
-
#include "common.h"
#include "nm-config.h"
#include "nm-ifcfg-connection.h"
diff --git a/src/settings/plugins/ifcfg-rh/plugin.c b/src/settings/plugins/ifcfg-rh/plugin.c
index 5afc46d609..d28e3bf6c4 100644
--- a/src/settings/plugins/ifcfg-rh/plugin.c
+++ b/src/settings/plugins/ifcfg-rh/plugin.c
@@ -21,7 +21,7 @@
* Copyright (C) 2007 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <unistd.h>
@@ -33,7 +33,6 @@
#include "nm-setting-connection.h"
-#include "nm-default.h"
#include "common.h"
#include "plugin.h"
#include "nm-settings-plugin.h"
diff --git a/src/settings/plugins/ifcfg-rh/reader.c b/src/settings/plugins/ifcfg-rh/reader.c
index 0f79ca07aa..5d4375cc09 100644
--- a/src/settings/plugins/ifcfg-rh/reader.c
+++ b/src/settings/plugins/ifcfg-rh/reader.c
@@ -18,7 +18,7 @@
* Copyright 2008 - 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <string.h>
@@ -31,25 +31,24 @@
#include <sys/ioctl.h>
#include <unistd.h>
-#include <nm-connection.h>
-#include <nm-dbus-interface.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-setting-vlan.h>
-#include <nm-setting-ip6-config.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-8021x.h>
-#include <nm-setting-bond.h>
-#include <nm-setting-team.h>
-#include <nm-setting-team-port.h>
-#include <nm-setting-bridge.h>
-#include <nm-setting-bridge-port.h>
-#include <nm-setting-dcb.h>
-#include <nm-setting-generic.h>
-#include "nm-default.h"
+#include "nm-connection.h"
+#include "nm-dbus-interface.h"
+#include "nm-setting-connection.h"
+#include "nm-setting-ip4-config.h"
+#include "nm-setting-vlan.h"
+#include "nm-setting-ip6-config.h"
+#include "nm-setting-wired.h"
+#include "nm-setting-wireless.h"
+#include "nm-setting-8021x.h"
+#include "nm-setting-bond.h"
+#include "nm-setting-team.h"
+#include "nm-setting-team-port.h"
+#include "nm-setting-bridge.h"
+#include "nm-setting-bridge-port.h"
+#include "nm-setting-dcb.h"
+#include "nm-setting-generic.h"
#include "nm-core-internal.h"
-#include <nm-utils.h>
+#include "nm-utils.h"
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/ifcfg-rh/shvar.c b/src/settings/plugins/ifcfg-rh/shvar.c
index 43068c6703..4e756349ca 100644
--- a/src/settings/plugins/ifcfg-rh/shvar.c
+++ b/src/settings/plugins/ifcfg-rh/shvar.c
@@ -23,7 +23,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <errno.h>
#include <fcntl.h>
@@ -37,7 +37,6 @@
#include "shvar.h"
#include "nm-core-internal.h"
-#include "nm-default.h"
#define PARSE_WARNING(msg...) nm_log_warn (LOGD_SETTINGS, " " msg)
diff --git a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh-utils.c b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh-utils.c
index 1ce7e8fa0c..5a0f6451a4 100644
--- a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh-utils.c
+++ b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh-utils.c
@@ -18,7 +18,7 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <stdarg.h>
diff --git a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c
index 30bffa733a..658281f795 100644
--- a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c
+++ b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c
@@ -18,7 +18,7 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <stdarg.h>
@@ -30,22 +30,22 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <nm-utils.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wired.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-setting-ip4-config.h>
-#include <nm-setting-ip6-config.h>
-#include <nm-setting-8021x.h>
-#include <nm-setting-pppoe.h>
-#include <nm-setting-ppp.h>
-#include <nm-setting-vpn.h>
-#include <nm-setting-gsm.h>
-#include <nm-setting-cdma.h>
-#include <nm-setting-serial.h>
-#include <nm-setting-vlan.h>
-#include <nm-setting-dcb.h>
+#include "nm-utils.h"
+#include "nm-setting-connection.h"
+#include "nm-setting-wired.h"
+#include "nm-setting-wireless.h"
+#include "nm-setting-wireless-security.h"
+#include "nm-setting-ip4-config.h"
+#include "nm-setting-ip6-config.h"
+#include "nm-setting-8021x.h"
+#include "nm-setting-pppoe.h"
+#include "nm-setting-ppp.h"
+#include "nm-setting-vpn.h"
+#include "nm-setting-gsm.h"
+#include "nm-setting-cdma.h"
+#include "nm-setting-serial.h"
+#include "nm-setting-vlan.h"
+#include "nm-setting-dcb.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
@@ -54,7 +54,6 @@
#include "reader.h"
#include "writer.h"
#include "utils.h"
-#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/settings/plugins/ifcfg-rh/utils.c b/src/settings/plugins/ifcfg-rh/utils.c
index 40270104b6..fda900b20e 100644
--- a/src/settings/plugins/ifcfg-rh/utils.c
+++ b/src/settings/plugins/ifcfg-rh/utils.c
@@ -18,9 +18,8 @@
* (C) Copyright 2008 - 2012 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "utils.h"
#include <stdlib.h>
diff --git a/src/settings/plugins/ifcfg-rh/writer.c b/src/settings/plugins/ifcfg-rh/writer.c
index 73d1dc546c..53e2f56b22 100644
--- a/src/settings/plugins/ifcfg-rh/writer.c
+++ b/src/settings/plugins/ifcfg-rh/writer.c
@@ -18,9 +18,8 @@
* Copyright 2009 - 2015 Red Hat, Inc.
*/
-#include "config.h"
-
#include "nm-default.h"
+
#include "writer.h"
#include <string.h>
diff --git a/src/settings/plugins/ifnet/connection_parser.c b/src/settings/plugins/ifnet/connection_parser.c
index 51ff9da6a9..bf8b9a4295 100644
--- a/src/settings/plugins/ifnet/connection_parser.c
+++ b/src/settings/plugins/ifnet/connection_parser.c
@@ -19,7 +19,7 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
@@ -27,7 +27,6 @@
#include <errno.h>
#include "nm-settings-plugin.h"
-#include "nm-default.h"
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/ifnet/net_parser.c b/src/settings/plugins/ifnet/net_parser.c
index ee66ff53d9..cad34f0688 100644
--- a/src/settings/plugins/ifnet/net_parser.c
+++ b/src/settings/plugins/ifnet/net_parser.c
@@ -19,15 +19,14 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <unistd.h>
-#include <nm-settings-plugin.h>
-#include "nm-default.h"
+#include "nm-settings-plugin.h"
#include "plugin.h"
#include "nm-platform.h"
diff --git a/src/settings/plugins/ifnet/net_utils.c b/src/settings/plugins/ifnet/net_utils.c
index e61c65210e..1944e47824 100644
--- a/src/settings/plugins/ifnet/net_utils.c
+++ b/src/settings/plugins/ifnet/net_utils.c
@@ -19,17 +19,17 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <nm-utils.h>
+
+#include "nm-utils.h"
#include "NetworkManagerUtils.h"
-#include <nm-settings-plugin.h>
+#include "nm-settings-plugin.h"
#include "nm-config.h"
-#include "nm-default.h"
#include "net_utils.h"
#include "wpa_parser.h"
#include "net_parser.h"
diff --git a/src/settings/plugins/ifnet/nm-ifnet-connection.c b/src/settings/plugins/ifnet/nm-ifnet-connection.c
index 450fe93179..845155194e 100644
--- a/src/settings/plugins/ifnet/nm-ifnet-connection.c
+++ b/src/settings/plugins/ifnet/nm-ifnet-connection.c
@@ -19,16 +19,16 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <glib/gstdio.h>
-#include <nm-dbus-interface.h>
-#include <nm-utils.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-settings-connection.h>
-#include <nm-settings-plugin.h>
-#include "nm-default.h"
+
+#include "nm-dbus-interface.h"
+#include "nm-utils.h"
+#include "nm-setting-wireless-security.h"
+#include "nm-settings-connection.h"
+#include "nm-settings-plugin.h"
#include "nm-ifnet-connection.h"
#include "connection_parser.h"
#include "net_parser.h"
diff --git a/src/settings/plugins/ifnet/plugin.c b/src/settings/plugins/ifnet/plugin.c
index b670cdac72..a0676cf894 100644
--- a/src/settings/plugins/ifnet/plugin.c
+++ b/src/settings/plugins/ifnet/plugin.c
@@ -20,14 +20,14 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <gmodule.h>
-#include <nm-utils.h>
-#include <nm-setting-connection.h>
+#include "nm-utils.h"
+#include "nm-setting-connection.h"
#include "nm-default.h"
#include "nm-dbus-interface.h"
diff --git a/src/settings/plugins/ifnet/tests/test-ifnet.c b/src/settings/plugins/ifnet/tests/test-ifnet.c
index 96fb5dd378..c870152b42 100644
--- a/src/settings/plugins/ifnet/tests/test-ifnet.c
+++ b/src/settings/plugins/ifnet/tests/test-ifnet.c
@@ -20,16 +20,16 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <unistd.h>
-#include <nm-utils.h>
-#include "nm-default.h"
+#include "nm-utils.h"
+
#include "nm-linux-platform.h"
#include "net_parser.h"
diff --git a/src/settings/plugins/ifnet/wpa_parser.c b/src/settings/plugins/ifnet/wpa_parser.c
index 9f228d0b70..501bca7aaa 100644
--- a/src/settings/plugins/ifnet/wpa_parser.c
+++ b/src/settings/plugins/ifnet/wpa_parser.c
@@ -19,12 +19,12 @@
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
-#include <nm-settings-plugin.h>
-#include "nm-default.h"
+
+#include "nm-settings-plugin.h"
#include "wpa_parser.h"
#include "net_parser.h"
#include "net_utils.h"
diff --git a/src/settings/plugins/ifupdown/interface_parser.c b/src/settings/plugins/ifupdown/interface_parser.c
index 4606f5ab63..be7d387dc7 100644
--- a/src/settings/plugins/ifupdown/interface_parser.c
+++ b/src/settings/plugins/ifupdown/interface_parser.c
@@ -20,16 +20,17 @@
* (C) Copyright 2004 Tom Parker
*/
-#include "config.h"
+#include "nm-default.h"
#include "interface_parser.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wordexp.h>
#include <libgen.h>
+
#include "nm-utils.h"
-#include "nm-default.h"
if_block* first;
if_block* last;
diff --git a/src/settings/plugins/ifupdown/nm-ifupdown-connection.c b/src/settings/plugins/ifupdown/nm-ifupdown-connection.c
index 2c8504b00c..19de1db625 100644
--- a/src/settings/plugins/ifupdown/nm-ifupdown-connection.c
+++ b/src/settings/plugins/ifupdown/nm-ifupdown-connection.c
@@ -21,16 +21,16 @@
* (C) Copyright 2007,2008 Canonical Ltd.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <glib/gstdio.h>
-#include <nm-dbus-interface.h>
-#include <nm-utils.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-settings-connection.h>
-#include <nm-settings-plugin.h>
-#include "nm-default.h"
+
+#include "nm-dbus-interface.h"
+#include "nm-utils.h"
+#include "nm-setting-wireless-security.h"
+#include "nm-settings-connection.h"
+#include "nm-settings-plugin.h"
#include "nm-ifupdown-connection.h"
#include "parser.h"
diff --git a/src/settings/plugins/ifupdown/parser.c b/src/settings/plugins/ifupdown/parser.c
index 8a3d4551da..bd200cd580 100644
--- a/src/settings/plugins/ifupdown/parser.c
+++ b/src/settings/plugins/ifupdown/parser.c
@@ -21,7 +21,7 @@
* (C) Copyright 2008 Canonical Ltd.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
@@ -31,7 +31,6 @@
#include "nm-core-internal.h"
#include "nm-settings-plugin.h"
-#include "nm-default.h"
#include "parser.h"
#include "plugin.h"
diff --git a/src/settings/plugins/ifupdown/plugin.c b/src/settings/plugins/ifupdown/plugin.c
index fc361de5c1..dbc96eacc2 100644
--- a/src/settings/plugins/ifupdown/plugin.c
+++ b/src/settings/plugins/ifupdown/plugin.c
@@ -22,14 +22,15 @@
* (C) Copyright 2009 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-
+#include <arpa/inet.h>
+#include <gudev/gudev.h>
#include <gmodule.h>
-#include <nm-setting-connection.h>
-#include "nm-default.h"
+#include "nm-setting-connection.h"
+
#include "interface_parser.h"
#include "nm-dbus-interface.h"
@@ -48,10 +49,6 @@
#include "nm-config.h"
-#include <arpa/inet.h>
-
-#include <gudev/gudev.h>
-
#define ENI_INTERFACES_FILE "/etc/network/interfaces"
#define IFUPDOWN_PLUGIN_NAME "ifupdown"
diff --git a/src/settings/plugins/ifupdown/tests/test-ifupdown.c b/src/settings/plugins/ifupdown/tests/test-ifupdown.c
index 54f30d38be..f383821c39 100644
--- a/src/settings/plugins/ifupdown/tests/test-ifupdown.c
+++ b/src/settings/plugins/ifupdown/tests/test-ifupdown.c
@@ -18,11 +18,10 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-core-internal.h"
#include "interface_parser.h"
#include "parser.h"
diff --git a/src/settings/plugins/keyfile/nm-keyfile-connection.c b/src/settings/plugins/keyfile/nm-keyfile-connection.c
index c217de68ed..97a5ee4c52 100644
--- a/src/settings/plugins/keyfile/nm-keyfile-connection.c
+++ b/src/settings/plugins/keyfile/nm-keyfile-connection.c
@@ -19,21 +19,20 @@
* Copyright (C) 2008 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <glib/gstdio.h>
-#include <nm-dbus-interface.h>
-#include <nm-setting-connection.h>
-#include <nm-utils.h>
-#include "nm-default.h"
+#include "nm-dbus-interface.h"
+#include "nm-setting-connection.h"
+#include "nm-utils.h"
+
#include "nm-settings-plugin.h"
#include "nm-keyfile-connection.h"
#include "reader.h"
#include "writer.h"
#include "utils.h"
-#include "nm-logging.h"
G_DEFINE_TYPE (NMKeyfileConnection, nm_keyfile_connection, NM_TYPE_SETTINGS_CONNECTION)
diff --git a/src/settings/plugins/keyfile/plugin.c b/src/settings/plugins/keyfile/plugin.c
index e352e5235b..29a1141b8e 100644
--- a/src/settings/plugins/keyfile/plugin.c
+++ b/src/settings/plugins/keyfile/plugin.c
@@ -19,7 +19,7 @@
* Copyright (C) 2008 - 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/stat.h>
#include <unistd.h>
@@ -29,12 +29,11 @@
#include <gmodule.h>
#include <glib/gstdio.h>
-#include <nm-connection.h>
-#include <nm-setting.h>
-#include <nm-setting-connection.h>
-#include <nm-utils.h>
+#include "nm-connection.h"
+#include "nm-setting.h"
+#include "nm-setting-connection.h"
+#include "nm-utils.h"
#include "nm-config.h"
-#include "nm-default.h"
#include "nm-core-internal.h"
#include "plugin.h"
diff --git a/src/settings/plugins/keyfile/reader.c b/src/settings/plugins/keyfile/reader.c
index 1c984a16d4..264b26a430 100644
--- a/src/settings/plugins/keyfile/reader.c
+++ b/src/settings/plugins/keyfile/reader.c
@@ -18,14 +18,13 @@
* Copyright (C) 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <sys/stat.h>
#include <string.h>
#include "reader.h"
-#include "nm-default.h"
#include "nm-keyfile-internal.h"
#include "NetworkManagerUtils.h"
diff --git a/src/settings/plugins/keyfile/tests/test-keyfile.c b/src/settings/plugins/keyfile/tests/test-keyfile.c
index d7b0ecce9f..7758724246 100644
--- a/src/settings/plugins/keyfile/tests/test-keyfile.c
+++ b/src/settings/plugins/keyfile/tests/test-keyfile.c
@@ -18,7 +18,7 @@
* Copyright (C) 2008 - 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <stdarg.h>
@@ -29,7 +29,6 @@
#include <sys/socket.h>
#include "nm-core-internal.h"
-#include "nm-default.h"
#include "reader.h"
#include "writer.h"
diff --git a/src/settings/plugins/keyfile/utils.c b/src/settings/plugins/keyfile/utils.c
index 48795ffb11..b5c306e4c1 100644
--- a/src/settings/plugins/keyfile/utils.c
+++ b/src/settings/plugins/keyfile/utils.c
@@ -18,15 +18,15 @@
* (C) Copyright 2010 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <string.h>
-#include "nm-default.h"
+
#include "utils.h"
-#include <nm-setting-wired.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-wireless-security.h>
+#include "nm-setting-wired.h"
+#include "nm-setting-wireless.h"
+#include "nm-setting-wireless-security.h"
#include "nm-config.h"
#define NM_CONFIG_KEYFILE_PATH_DEFAULT NMCONFDIR "/system-connections"
diff --git a/src/settings/plugins/keyfile/writer.c b/src/settings/plugins/keyfile/writer.c
index d03aba8ae6..c8eb880090 100644
--- a/src/settings/plugins/keyfile/writer.c
+++ b/src/settings/plugins/keyfile/writer.c
@@ -19,7 +19,7 @@
* Copyright (C) 2008 - 2015 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdlib.h>
#include <sys/stat.h>
@@ -27,7 +27,6 @@
#include <errno.h>
#include <string.h>
-#include "nm-default.h"
#include "writer.h"
#include "utils.h"
#include "nm-keyfile-internal.h"
diff --git a/src/supplicant-manager/nm-supplicant-config.c b/src/supplicant-manager/nm-supplicant-config.c
index 190ee0a7f0..091742e586 100644
--- a/src/supplicant-manager/nm-supplicant-config.c
+++ b/src/supplicant-manager/nm-supplicant-config.c
@@ -19,12 +19,11 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-supplicant-config.h"
#include "nm-supplicant-settings-verify.h"
#include "nm-setting.h"
diff --git a/src/supplicant-manager/nm-supplicant-interface.c b/src/supplicant-manager/nm-supplicant-interface.c
index 10081b5976..ce7a2a2c98 100644
--- a/src/supplicant-manager/nm-supplicant-interface.c
+++ b/src/supplicant-manager/nm-supplicant-interface.c
@@ -19,12 +19,11 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <string.h>
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-supplicant-interface.h"
#include "nm-supplicant-config.h"
diff --git a/src/supplicant-manager/nm-supplicant-manager.c b/src/supplicant-manager/nm-supplicant-manager.c
index 14254266a3..9614c8ddd5 100644
--- a/src/supplicant-manager/nm-supplicant-manager.c
+++ b/src/supplicant-manager/nm-supplicant-manager.c
@@ -19,11 +19,10 @@
* Copyright (C) 2007 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-supplicant-manager.h"
#include "nm-supplicant-interface.h"
#include "nm-supplicant-types.h"
diff --git a/src/supplicant-manager/nm-supplicant-settings-verify.c b/src/supplicant-manager/nm-supplicant-settings-verify.c
index f2d5654053..ec660d189f 100644
--- a/src/supplicant-manager/nm-supplicant-settings-verify.c
+++ b/src/supplicant-manager/nm-supplicant-settings-verify.c
@@ -18,14 +18,13 @@
* Copyright (C) 2006 - 2012 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include "nm-default.h"
#include "nm-supplicant-settings-verify.h"
struct Opt {
diff --git a/src/supplicant-manager/tests/test-supplicant-config.c b/src/supplicant-manager/tests/test-supplicant-config.c
index bd532b2429..0c3e9a47d0 100644
--- a/src/supplicant-manager/tests/test-supplicant-config.c
+++ b/src/supplicant-manager/tests/test-supplicant-config.c
@@ -18,7 +18,7 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <stdio.h>
#include <stdarg.h>
@@ -34,7 +34,6 @@
#include "nm-supplicant-config.h"
#include "nm-supplicant-settings-verify.h"
-#include "nm-default.h"
#include "nm-test-utils.h"
diff --git a/src/systemd/nm-sd-adapt.c b/src/systemd/nm-sd-adapt.c
index 8b29aed51d..e10df9c746 100644
--- a/src/systemd/nm-sd-adapt.c
+++ b/src/systemd/nm-sd-adapt.c
@@ -16,7 +16,7 @@
* Copyright (C) 2014 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <glib.h>
#include <unistd.h>
diff --git a/src/systemd/nm-sd-adapt.h b/src/systemd/nm-sd-adapt.h
index 84a497caf3..f48c86f1cc 100644
--- a/src/systemd/nm-sd-adapt.h
+++ b/src/systemd/nm-sd-adapt.h
@@ -19,15 +19,13 @@
#ifndef NM_SD_ADAPT_H
#define NM_SD_ADAPT_H
-#include "config.h"
+#include "nm-default.h"
#include <stdbool.h>
#include <syslog.h>
#include <sys/resource.h>
#include <time.h>
-#include "nm-default.h"
-
#define noreturn G_GNUC_NORETURN
#ifndef CLOCK_BOOTTIME
diff --git a/src/tests/config/nm-test-device.c b/src/tests/config/nm-test-device.c
index 681f496603..04ccaec214 100644
--- a/src/tests/config/nm-test-device.c
+++ b/src/tests/config/nm-test-device.c
@@ -18,7 +18,7 @@
* Copyright 2013 Red Hat, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
diff --git a/src/tests/config/test-config.c b/src/tests/config/test-config.c
index e8de86c8a8..19306df723 100644
--- a/src/tests/config/test-config.c
+++ b/src/tests/config/test-config.c
@@ -18,13 +18,11 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <unistd.h>
-
#include "nm-config.h"
-#include "nm-default.h"
#include "nm-test-device.h"
#include "nm-fake-platform.h"
#include "nm-bus-manager.h"
diff --git a/src/tests/test-dcb.c b/src/tests/test-dcb.c
index 35f1ed0fad..e8e1ec860b 100644
--- a/src/tests/test-dcb.c
+++ b/src/tests/test-dcb.c
@@ -18,11 +18,10 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-dcb.h"
#include "nm-test-utils.h"
diff --git a/src/tests/test-general-with-expect.c b/src/tests/test-general-with-expect.c
index 0796f7caac..43595c8de3 100644
--- a/src/tests/test-general-with-expect.c
+++ b/src/tests/test-general-with-expect.c
@@ -18,7 +18,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <errno.h>
@@ -27,7 +27,6 @@
#include <sys/types.h>
#include <sys/wait.h>
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-multi-index.h"
diff --git a/src/tests/test-general.c b/src/tests/test-general.c
index ffbeae14e3..b8a51f2aaa 100644
--- a/src/tests/test-general.c
+++ b/src/tests/test-general.c
@@ -18,12 +18,11 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <errno.h>
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-core-internal.h"
diff --git a/src/tests/test-ip4-config.c b/src/tests/test-ip4-config.c
index 16cd3d1ef1..2b743c8c3c 100644
--- a/src/tests/test-ip4-config.c
+++ b/src/tests/test-ip4-config.c
@@ -18,12 +18,11 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
-#include "nm-default.h"
#include "nm-ip4-config.h"
#include "nm-platform.h"
diff --git a/src/tests/test-ip6-config.c b/src/tests/test-ip6-config.c
index 2639a1f0d2..5a2bb58905 100644
--- a/src/tests/test-ip6-config.c
+++ b/src/tests/test-ip6-config.c
@@ -18,12 +18,11 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
-#include "nm-default.h"
#include "nm-ip6-config.h"
#include "nm-platform.h"
diff --git a/src/tests/test-resolvconf-capture.c b/src/tests/test-resolvconf-capture.c
index db7006ba66..31b6e1777f 100644
--- a/src/tests/test-resolvconf-capture.c
+++ b/src/tests/test-resolvconf-capture.c
@@ -18,12 +18,11 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <arpa/inet.h>
-#include "nm-default.h"
#include "NetworkManagerUtils.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
diff --git a/src/tests/test-route-manager.c b/src/tests/test-route-manager.c
index 347c122c36..742f4ee5cd 100644
--- a/src/tests/test-route-manager.c
+++ b/src/tests/test-route-manager.c
@@ -18,12 +18,11 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <arpa/inet.h>
#include <linux/rtnetlink.h>
-#include "nm-default.h"
#include "test-common.h"
#include "nm-platform.h"
diff --git a/src/tests/test-utils.c b/src/tests/test-utils.c
index 79a7e68030..58eca5f3f5 100644
--- a/src/tests/test-utils.c
+++ b/src/tests/test-utils.c
@@ -18,7 +18,7 @@
*
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <errno.h>
diff --git a/src/tests/test-wired-defname.c b/src/tests/test-wired-defname.c
index 989345d805..6edd5ff246 100644
--- a/src/tests/test-wired-defname.c
+++ b/src/tests/test-wired-defname.c
@@ -18,12 +18,10 @@
*
*/
-#include "config.h"
-
-
-#include <nm-simple-connection.h>
-#include <nm-setting-connection.h>
#include "nm-default.h"
+
+#include "nm-simple-connection.h"
+#include "nm-setting-connection.h"
#include "nm-device-ethernet-utils.h"
#include "nm-test-utils.h"
diff --git a/src/vpn-manager/nm-vpn-connection.c b/src/vpn-manager/nm-vpn-connection.c
index 23598afec6..653b997231 100644
--- a/src/vpn-manager/nm-vpn-connection.c
+++ b/src/vpn-manager/nm-vpn-connection.c
@@ -19,7 +19,7 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
#include <sys/socket.h>
@@ -28,7 +28,6 @@
#include <errno.h>
#include <stdlib.h>
-#include "nm-default.h"
#include "nm-vpn-connection.h"
#include "nm-ip4-config.h"
#include "nm-ip6-config.h"
diff --git a/src/vpn-manager/nm-vpn-manager.c b/src/vpn-manager/nm-vpn-manager.c
index 45d22998b9..6dcd546383 100644
--- a/src/vpn-manager/nm-vpn-manager.c
+++ b/src/vpn-manager/nm-vpn-manager.c
@@ -19,11 +19,10 @@
* Copyright (C) 2006 - 2008 Novell, Inc.
*/
-#include "config.h"
+#include "nm-default.h"
#include <string.h>
-#include "nm-default.h"
#include "nm-vpn-manager.h"
#include "nm-vpn-plugin-info.h"
#include "nm-vpn-connection.h"