summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-30 03:26:06 +0200
committerThomas Haller <thaller@redhat.com>2016-04-30 03:42:16 +0200
commitc5ac69174464521e8d20d8e5e1e8ec1cefe41773 (patch)
tree86097d0b69d7a7ab6cd506d1cc8873f125c0a37b /src
parent9f29cc13e7fc8afde887d2832f75b5372ec83457 (diff)
downloadNetworkManager-c5ac69174464521e8d20d8e5e1e8ec1cefe41773.tar.gz
build: cleanup includes of <gmodule.h>
<gmodule.h> is implicitly included by <gio/gio.h> which is available everywhere. For that reason, we would not have to include this header at all. However, it is recommended to explicitly include <gmodule.h> where needed. So, include it where needed -- if <gio/gio.h> wouldn't be there -- and drop it from where it is not needed.
Diffstat (limited to 'src')
-rw-r--r--src/main-utils.c1
-rw-r--r--src/main.c1
-rw-r--r--src/settings/plugins/keyfile/plugin.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/main-utils.c b/src/main-utils.c
index 8624280221..b94e8b2199 100644
--- a/src/main-utils.c
+++ b/src/main-utils.c
@@ -31,7 +31,6 @@
#include <glib/gstdio.h>
#include <glib-unix.h>
-#include <gmodule.h>
#include "main-utils.h"
#include "NetworkManagerUtils.h"
diff --git a/src/main.c b/src/main.c
index b60ec84eb3..c4782b609e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,7 +31,6 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <gmodule.h>
#include <string.h>
#include <sys/resource.h>
diff --git a/src/settings/plugins/keyfile/plugin.c b/src/settings/plugins/keyfile/plugin.c
index 6003c7457f..c5598fc5b4 100644
--- a/src/settings/plugins/keyfile/plugin.c
+++ b/src/settings/plugins/keyfile/plugin.c
@@ -26,7 +26,6 @@
#include <sys/types.h>
#include <string.h>
-#include <gmodule.h>
#include <glib/gstdio.h>
#include "nm-connection.h"