Commit a3370af3 authored by Thomas Haller's avatar Thomas Haller

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.
parent 32a847a6
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h>
#include <readline/readline.h> #include <readline/readline.h>
#include <readline/history.h> #include <readline/history.h>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <readline/readline.h> #include <readline/readline.h>
#include <readline/history.h> #include <readline/history.h>
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
#include "connections.h" #include "connections.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h>
#include <signal.h> #include <signal.h>
#include <netinet/ether.h> #include <netinet/ether.h>
#include <readline/readline.h> #include <readline/readline.h>
......
...@@ -22,9 +22,7 @@ ...@@ -22,9 +22,7 @@
#include "devices.h" #include "devices.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h>
#include <readline/readline.h> #include <readline/readline.h>
#include "nm-secret-agent-simple.h" #include "nm-secret-agent-simple.h"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "general.h" #include "general.h"
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "nm-common-macros.h" #include "nm-common-macros.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "nmcli.h" #include "nmcli.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#include <termios.h> #include <termios.h>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "polkit-agent.h" #include "polkit-agent.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -23,9 +23,7 @@ ...@@ -23,9 +23,7 @@
#include "utils.h" #include "utils.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "nm-polkit-listener.h" #include "nm-polkit-listener.h"
#include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <gio/gunixoutputstream.h> #include <gio/gunixoutputstream.h>
#include <gio/gunixinputstream.h> #include <gio/gunixinputstream.h>
#include <string.h>
#include "nm-vpn-service-plugin.h" #include "nm-vpn-service-plugin.h"
#include "nm-vpn-helpers.h" #include "nm-vpn-helpers.h"
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "nm-vpn-helpers.h" #include "nm-vpn-helpers.h"
#include <string.h>
#include "nm-utils.h" #include "nm-utils.h"
/*****************************************************************************/ /*****************************************************************************/
......
...@@ -31,9 +31,8 @@ ...@@ -31,9 +31,8 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-button-box.h" #include "nmt-newt-button-box.h"
#include "nmt-newt-button.h" #include "nmt-newt-button.h"
G_DEFINE_TYPE (NmtNewtButtonBox, nmt_newt_button_box, NMT_TYPE_NEWT_CONTAINER) G_DEFINE_TYPE (NmtNewtButtonBox, nmt_newt_button_box, NMT_TYPE_NEWT_CONTAINER)
......
...@@ -28,9 +28,8 @@ ...@@ -28,9 +28,8 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-container.h" #include "nmt-newt-container.h"
#include "nmt-newt-component.h" #include "nmt-newt-component.h"
G_DEFINE_ABSTRACT_TYPE (NmtNewtContainer, nmt_newt_container, NMT_TYPE_NEWT_WIDGET) G_DEFINE_ABSTRACT_TYPE (NmtNewtContainer, nmt_newt_container, NMT_TYPE_NEWT_WIDGET)
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-entry.h" #include "nmt-newt-entry.h"
#include "nmt-newt-form.h" #include "nmt-newt-form.h"
#include "nmt-newt-hacks.h" #include "nmt-newt-hacks.h"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <fcntl.h> #include <fcntl.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include "nmt-newt-form.h" #include "nmt-newt-form.h"
......
...@@ -42,8 +42,6 @@ ...@@ -42,8 +42,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-grid.h" #include "nmt-newt-grid.h"
G_DEFINE_TYPE (NmtNewtGrid, nmt_newt_grid, NMT_TYPE_NEWT_CONTAINER) G_DEFINE_TYPE (NmtNewtGrid, nmt_newt_grid, NMT_TYPE_NEWT_CONTAINER)
......
...@@ -27,9 +27,8 @@ ...@@ -27,9 +27,8 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-label.h" #include "nmt-newt-label.h"
#include "nmt-newt-utils.h" #include "nmt-newt-utils.h"
G_DEFINE_TYPE (NmtNewtLabel, nmt_newt_label, NMT_TYPE_NEWT_COMPONENT) G_DEFINE_TYPE (NmtNewtLabel, nmt_newt_label, NMT_TYPE_NEWT_COMPONENT)
......
...@@ -37,9 +37,8 @@ ...@@ -37,9 +37,8 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-section.h" #include "nmt-newt-section.h"
#include "nmt-newt-grid.h" #include "nmt-newt-grid.h"
#include "nmt-newt-label.h" #include "nmt-newt-label.h"
#include "nmt-newt-utils.h" #include "nmt-newt-utils.h"
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-stack.h" #include "nmt-newt-stack.h"
G_DEFINE_TYPE (NmtNewtStack, nmt_newt_stack, NMT_TYPE_NEWT_CONTAINER) G_DEFINE_TYPE (NmtNewtStack, nmt_newt_stack, NMT_TYPE_NEWT_CONTAINER)
......
...@@ -26,9 +26,8 @@ ...@@ -26,9 +26,8 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-newt-textbox.h" #include "nmt-newt-textbox.h"
#include "nmt-newt-utils.h" #include "nmt-newt-utils.h"
G_DEFINE_TYPE (NmtNewtTextbox, nmt_newt_textbox, NMT_TYPE_NEWT_COMPONENT) G_DEFINE_TYPE (NmtNewtTextbox, nmt_newt_textbox, NMT_TYPE_NEWT_COMPONENT)
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <errno.h>
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h> #include <unistd.h>
#include <sys/wait.h> #include <sys/wait.h>
......
...@@ -27,12 +27,11 @@ ...@@ -27,12 +27,11 @@
#include "nm-default.h" #include "nm-default.h"
#include "nm-editor-bindings.h"
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "nm-editor-bindings.h"
static void static void
value_transform_string_int (const GValue *src_value, value_transform_string_int (const GValue *src_value,
......
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
#include "nm-default.h" #include "nm-default.h"
#include "nmt-address-list.h"
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "nmt-address-list.h"
#include "nmt-ip-entry.h" #include "nmt-ip-entry.h"
G_DEFINE_TYPE (NmtAddressList, nmt_address_list, NMT_TYPE_WIDGET_LIST) G_DEFINE_TYPE (NmtAddressList, nmt_address_list, NMT_TYPE_WIDGET_LIST)
......
...@@ -36,12 +36,12 @@ ...@@ -36,12 +36,12 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h> #include "nmt-device-entry.h"
#include <sys/socket.h> #include <sys/socket.h>
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include "nmtui.h" #include "nmtui.h"
#include "nmt-device-entry.h"
G_DEFINE_TYPE (NmtDeviceEntry, nmt_device_entry, NMT_TYPE_EDITOR_GRID) G_DEFINE_TYPE (NmtDeviceEntry, nmt_device_entry, NMT_TYPE_EDITOR_GRID)
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-editor-grid.h" #include "nmt-editor-grid.h"
G_DEFINE_TYPE (NmtEditorGrid, nmt_editor_grid, NMT_TYPE_NEWT_CONTAINER) G_DEFINE_TYPE (NmtEditorGrid, nmt_editor_grid, NMT_TYPE_NEWT_CONTAINER)
......
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#include "nmt-mac-entry.h" #include "nmt-mac-entry.h"
#include <string.h>
#include "nm-common-macros.h" #include "nm-common-macros.h"
G_DEFINE_TYPE (NmtMacEntry, nmt_mac_entry, NMT_TYPE_NEWT_ENTRY) G_DEFINE_TYPE (NmtMacEntry, nmt_mac_entry, NMT_TYPE_NEWT_ENTRY)
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nmt-utils.h" #include "nmt-utils.h"
/** /**
......
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
#include "nm-default.h" #include "nm-default.h"
#include "nmt-widget-list.h"
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "nmt-widget-list.h"
#include "nmt-newt.h" #include "nmt-newt.h"
G_DEFINE_TYPE (NmtWidgetList, nmt_widget_list, NMT_TYPE_NEWT_GRID) G_DEFINE_TYPE (NmtWidgetList, nmt_widget_list, NMT_TYPE_NEWT_GRID)
......
...@@ -26,14 +26,14 @@ ...@@ -26,14 +26,14 @@
#include "nm-default.h" #include "nm-default.h"
#include "nmtui.h"
#include <locale.h> #include <locale.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "nmt-newt.h" #include "nmt-newt.h"
#include "nm-editor-bindings.h" #include "nm-editor-bindings.h"
#include "nmtui.h"
#include "nmtui-edit.h" #include "nmtui-edit.h"
#include "nmtui-connect.h" #include "nmtui-connect.h"
#include "nmtui-hostname.h" #include "nmtui-hostname.h"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h> #include "nm-dispatcher-utils.h"
#include "nm-dbus-interface.h" #include "nm-dbus-interface.h"
#include "nm-connection.h" #include "nm-connection.h"
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include "nm-dispatcher-api.h" #include "nm-dispatcher-api.h"
#include "nm-utils.h" #include "nm-utils.h"
#include "nm-dispatcher-utils.h"
/*****************************************************************************/ /*****************************************************************************/
static gboolean static gboolean
......
...@@ -24,12 +24,10 @@ ...@@ -24,12 +24,10 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <errno.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <glib-unix.h> #include <glib-unix.h>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "nm-dispatcher-utils.h" #include "nm-dispatcher-utils.h"
#include "nm-dispatcher-api.h" #include "nm-dispatcher-api.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "nm-connection.h" #include "nm-connection.h"
#include <string.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "nm-connection-private.h" #include "nm-connection-private.h"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "nm-crypto.h" #include "nm-crypto.h"
#include <string.h>
#include <strings.h> #include <strings.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nm-core-internal.h" #include "nm-core-internal.h"
typedef struct { typedef struct {
......
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
#include "nm-default.h" #include "nm-default.h"
#include <string.h>
#include "nm-errors.h" #include "nm-errors.h"
#include "nm-vpn-dbus-interface.h" #include "nm-vpn-dbus-interface.h"
#include "nm-core-internal.h" #include "nm-core-internal.h"
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#include "nm-default.h" #include "nm-default.h"
#include "nm-keyfile-utils.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "nm-keyfile-utils.h"
#include "nm-keyfile-internal.h" #include "nm-keyfile-internal.h"
#include "nm-setting-wired.h" #include "nm-setting-wired.h"
#include "nm-setting-wireless.h" #include "nm-setting-wireless.h"
......
...@@ -23,14 +23,12 @@ ...@@ -23,14 +23,12 @@
#include "nm-keyfile-internal.h" #include "nm-keyfile-internal.h"
#include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h>