summaryrefslogtreecommitdiff
path: root/clients/tui
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-31 13:44:13 +0100
committerThomas Haller <thaller@redhat.com>2019-02-12 08:50:28 +0100
commita3370af3a8a965e41950c5022182730d79614df2 (patch)
tree78f971ab718bd6005f26ccefaf618c5faed5600f /clients/tui
parent32a847a61f031813865199366318d047ca38c2f1 (diff)
downloadNetworkManager-a3370af3a8a965e41950c5022182730d79614df2.tar.gz
all: drop unnecessary includes of <errno.h> and <string.h>
"nm-macros-interal.h" already includes <errno.h> and <string.h>. No need to include it everywhere else too.
Diffstat (limited to 'clients/tui')
-rw-r--r--clients/tui/newt/nmt-newt-button-box.c3
-rw-r--r--clients/tui/newt/nmt-newt-container.c3
-rw-r--r--clients/tui/newt/nmt-newt-entry.c2
-rw-r--r--clients/tui/newt/nmt-newt-form.c1
-rw-r--r--clients/tui/newt/nmt-newt-grid.c2
-rw-r--r--clients/tui/newt/nmt-newt-label.c3
-rw-r--r--clients/tui/newt/nmt-newt-section.c3
-rw-r--r--clients/tui/newt/nmt-newt-stack.c2
-rw-r--r--clients/tui/newt/nmt-newt-textbox.c3
-rw-r--r--clients/tui/newt/nmt-newt-utils.c1
-rw-r--r--clients/tui/nm-editor-bindings.c5
-rw-r--r--clients/tui/nmt-address-list.c4
-rw-r--r--clients/tui/nmt-device-entry.c4
-rw-r--r--clients/tui/nmt-editor-grid.c2
-rw-r--r--clients/tui/nmt-mac-entry.c2
-rw-r--r--clients/tui/nmt-utils.c2
-rw-r--r--clients/tui/nmt-widget-list.c4
-rw-r--r--clients/tui/nmtui.c4
18 files changed, 15 insertions, 35 deletions
diff --git a/clients/tui/newt/nmt-newt-button-box.c b/clients/tui/newt/nmt-newt-button-box.c
index 5341c76a54..02d8f5cbb2 100644
--- a/clients/tui/newt/nmt-newt-button-box.c
+++ b/clients/tui/newt/nmt-newt-button-box.c
@@ -31,9 +31,8 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-button-box.h"
+
#include "nmt-newt-button.h"
G_DEFINE_TYPE (NmtNewtButtonBox, nmt_newt_button_box, NMT_TYPE_NEWT_CONTAINER)
diff --git a/clients/tui/newt/nmt-newt-container.c b/clients/tui/newt/nmt-newt-container.c
index 927f187e86..402590258a 100644
--- a/clients/tui/newt/nmt-newt-container.c
+++ b/clients/tui/newt/nmt-newt-container.c
@@ -28,9 +28,8 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-container.h"
+
#include "nmt-newt-component.h"
G_DEFINE_ABSTRACT_TYPE (NmtNewtContainer, nmt_newt_container, NMT_TYPE_NEWT_WIDGET)
diff --git a/clients/tui/newt/nmt-newt-entry.c b/clients/tui/newt/nmt-newt-entry.c
index 2715a7389f..90c2e467b5 100644
--- a/clients/tui/newt/nmt-newt-entry.c
+++ b/clients/tui/newt/nmt-newt-entry.c
@@ -28,8 +28,6 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-entry.h"
#include "nmt-newt-form.h"
#include "nmt-newt-hacks.h"
diff --git a/clients/tui/newt/nmt-newt-form.c b/clients/tui/newt/nmt-newt-form.c
index ccf447eada..cd87a2160a 100644
--- a/clients/tui/newt/nmt-newt-form.c
+++ b/clients/tui/newt/nmt-newt-form.c
@@ -27,7 +27,6 @@
#include "nm-default.h"
#include <fcntl.h>
-#include <string.h>
#include <unistd.h>
#include "nmt-newt-form.h"
diff --git a/clients/tui/newt/nmt-newt-grid.c b/clients/tui/newt/nmt-newt-grid.c
index 4333e0dc6f..e6c487f5f7 100644
--- a/clients/tui/newt/nmt-newt-grid.c
+++ b/clients/tui/newt/nmt-newt-grid.c
@@ -42,8 +42,6 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-grid.h"
G_DEFINE_TYPE (NmtNewtGrid, nmt_newt_grid, NMT_TYPE_NEWT_CONTAINER)
diff --git a/clients/tui/newt/nmt-newt-label.c b/clients/tui/newt/nmt-newt-label.c
index f9aed8a3dd..63bd28da9d 100644
--- a/clients/tui/newt/nmt-newt-label.c
+++ b/clients/tui/newt/nmt-newt-label.c
@@ -27,9 +27,8 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-label.h"
+
#include "nmt-newt-utils.h"
G_DEFINE_TYPE (NmtNewtLabel, nmt_newt_label, NMT_TYPE_NEWT_COMPONENT)
diff --git a/clients/tui/newt/nmt-newt-section.c b/clients/tui/newt/nmt-newt-section.c
index 34073454ce..9b7e44e4b5 100644
--- a/clients/tui/newt/nmt-newt-section.c
+++ b/clients/tui/newt/nmt-newt-section.c
@@ -37,9 +37,8 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-section.h"
+
#include "nmt-newt-grid.h"
#include "nmt-newt-label.h"
#include "nmt-newt-utils.h"
diff --git a/clients/tui/newt/nmt-newt-stack.c b/clients/tui/newt/nmt-newt-stack.c
index 3abf00b199..da4beb8b70 100644
--- a/clients/tui/newt/nmt-newt-stack.c
+++ b/clients/tui/newt/nmt-newt-stack.c
@@ -31,8 +31,6 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-stack.h"
G_DEFINE_TYPE (NmtNewtStack, nmt_newt_stack, NMT_TYPE_NEWT_CONTAINER)
diff --git a/clients/tui/newt/nmt-newt-textbox.c b/clients/tui/newt/nmt-newt-textbox.c
index 73794f5eb3..0850e60c50 100644
--- a/clients/tui/newt/nmt-newt-textbox.c
+++ b/clients/tui/newt/nmt-newt-textbox.c
@@ -26,9 +26,8 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-newt-textbox.h"
+
#include "nmt-newt-utils.h"
G_DEFINE_TYPE (NmtNewtTextbox, nmt_newt_textbox, NMT_TYPE_NEWT_COMPONENT)
diff --git a/clients/tui/newt/nmt-newt-utils.c b/clients/tui/newt/nmt-newt-utils.c
index e886650036..475faf7ee8 100644
--- a/clients/tui/newt/nmt-newt-utils.c
+++ b/clients/tui/newt/nmt-newt-utils.c
@@ -23,7 +23,6 @@
#include "nm-default.h"
-#include <errno.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/wait.h>
diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c
index 16ea60d31d..df6387c329 100644
--- a/clients/tui/nm-editor-bindings.c
+++ b/clients/tui/nm-editor-bindings.c
@@ -27,12 +27,11 @@
#include "nm-default.h"
+#include "nm-editor-bindings.h"
+
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdlib.h>
-#include <string.h>
-
-#include "nm-editor-bindings.h"
static void
value_transform_string_int (const GValue *src_value,
diff --git a/clients/tui/nmt-address-list.c b/clients/tui/nmt-address-list.c
index 53990d6a53..ae1a6b2fcc 100644
--- a/clients/tui/nmt-address-list.c
+++ b/clients/tui/nmt-address-list.c
@@ -30,12 +30,12 @@
#include "nm-default.h"
+#include "nmt-address-list.h"
+
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdlib.h>
-#include <string.h>
-#include "nmt-address-list.h"
#include "nmt-ip-entry.h"
G_DEFINE_TYPE (NmtAddressList, nmt_address_list, NMT_TYPE_WIDGET_LIST)
diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c
index a4d63e4f34..43fbbc1649 100644
--- a/clients/tui/nmt-device-entry.c
+++ b/clients/tui/nmt-device-entry.c
@@ -36,12 +36,12 @@
#include "nm-default.h"
-#include <string.h>
+#include "nmt-device-entry.h"
+
#include <sys/socket.h>
#include <linux/if_arp.h>
#include "nmtui.h"
-#include "nmt-device-entry.h"
G_DEFINE_TYPE (NmtDeviceEntry, nmt_device_entry, NMT_TYPE_EDITOR_GRID)
diff --git a/clients/tui/nmt-editor-grid.c b/clients/tui/nmt-editor-grid.c
index bc8a784336..bb3e78b851 100644
--- a/clients/tui/nmt-editor-grid.c
+++ b/clients/tui/nmt-editor-grid.c
@@ -39,8 +39,6 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-editor-grid.h"
G_DEFINE_TYPE (NmtEditorGrid, nmt_editor_grid, NMT_TYPE_NEWT_CONTAINER)
diff --git a/clients/tui/nmt-mac-entry.c b/clients/tui/nmt-mac-entry.c
index 23c2ab1cbe..70c8c30796 100644
--- a/clients/tui/nmt-mac-entry.c
+++ b/clients/tui/nmt-mac-entry.c
@@ -30,8 +30,6 @@
#include "nmt-mac-entry.h"
-#include <string.h>
-
#include "nm-common-macros.h"
G_DEFINE_TYPE (NmtMacEntry, nmt_mac_entry, NMT_TYPE_NEWT_ENTRY)
diff --git a/clients/tui/nmt-utils.c b/clients/tui/nmt-utils.c
index 7cd71be2b4..96b97158e1 100644
--- a/clients/tui/nmt-utils.c
+++ b/clients/tui/nmt-utils.c
@@ -23,8 +23,6 @@
#include "nm-default.h"
-#include <string.h>
-
#include "nmt-utils.h"
/**
diff --git a/clients/tui/nmt-widget-list.c b/clients/tui/nmt-widget-list.c
index 2fd5af02c7..ad35f3de1f 100644
--- a/clients/tui/nmt-widget-list.c
+++ b/clients/tui/nmt-widget-list.c
@@ -32,12 +32,12 @@
#include "nm-default.h"
+#include "nmt-widget-list.h"
+
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdlib.h>
-#include <string.h>
-#include "nmt-widget-list.h"
#include "nmt-newt.h"
G_DEFINE_TYPE (NmtWidgetList, nmt_widget_list, NMT_TYPE_NEWT_GRID)
diff --git a/clients/tui/nmtui.c b/clients/tui/nmtui.c
index 97c528e705..aacc07cb15 100644
--- a/clients/tui/nmtui.c
+++ b/clients/tui/nmtui.c
@@ -26,14 +26,14 @@
#include "nm-default.h"
+#include "nmtui.h"
+
#include <locale.h>
#include <stdlib.h>
-#include <string.h>
#include "nmt-newt.h"
#include "nm-editor-bindings.h"
-#include "nmtui.h"
#include "nmtui-edit.h"
#include "nmtui-connect.h"
#include "nmtui-hostname.h"