summary refs log tree commit diff
path: root/src/core/devices/nm-device-wpan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/devices/nm-device-wpan.c')
-rw-r--r--src/core/devices/nm-device-wpan.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/core/devices/nm-device-wpan.c b/src/core/devices/nm-device-wpan.c
index 9bc43a85..f7b712ea 100644
--- a/src/core/devices/nm-device-wpan.c
+++ b/src/core/devices/nm-device-wpan.c
@@ -14,7 +14,6 @@
 
 #include "nm-act-request.h"
 #include "nm-device-private.h"
-#include "nm-ip4-config.h"
 #include "libnm-platform/nm-platform.h"
 #include "nm-device-factory.h"
 #include "nm-setting-wpan.h"
@@ -39,11 +38,11 @@ G_DEFINE_TYPE(NMDeviceWpan, nm_device_wpan, NM_TYPE_DEVICE)
 /*****************************************************************************/
 
 static gboolean
-complete_connection(NMDevice *           device,
-                    NMConnection *       connection,
-                    const char *         specific_object,
+complete_connection(NMDevice            *device,
+                    NMConnection        *connection,
+                    const char          *specific_object,
                     NMConnection *const *existing_connections,
-                    GError **            error)
+                    GError             **error)
 {
     NMSettingWpan *s_wpan;
 
@@ -79,7 +78,7 @@ static gboolean
 check_connection_compatible(NMDevice *device, NMConnection *connection, GError **error)
 {
     NMSettingWpan *s_wpan;
-    const char *   mac, *hw_addr;
+    const char    *mac, *hw_addr;
 
     if (!NM_DEVICE_CLASS(nm_device_wpan_parent_class)
              ->check_connection_compatible(device, connection, error))
@@ -104,17 +103,17 @@ check_connection_compatible(NMDevice *device, NMConnection *connection, GError *
 static NMActStageReturn
 act_stage1_prepare(NMDevice *device, NMDeviceStateReason *out_failure_reason)
 {
-    NMDeviceWpan *        self = NM_DEVICE_WPAN(device);
-    NMSettingWpan *       s_wpan;
-    NMPlatform *          platform;
+    NMDeviceWpan         *self = NM_DEVICE_WPAN(device);
+    NMSettingWpan        *s_wpan;
+    NMPlatform           *platform;
     guint16               pan_id;
     guint16               short_address;
     gint16                page, channel;
     int                   ifindex;
-    const guint8 *        hwaddr;
+    const guint8         *hwaddr;
     gsize                 hwaddr_len = 0;
     const NMPlatformLink *lowpan_plink;
-    NMDevice *            lowpan_device = NULL;
+    NMDevice             *lowpan_device = NULL;
     NMActStageReturn      ret           = NM_ACT_STAGE_RETURN_FAILURE;
 
     platform = nm_device_get_platform(device);
@@ -203,7 +202,7 @@ static const NMDBusInterfaceInfoExtended interface_info_device_wpan = {
 static void
 nm_device_wpan_class_init(NMDeviceWpanClass *klass)
 {
-    NMDeviceClass *    device_class      = NM_DEVICE_CLASS(klass);
+    NMDeviceClass     *device_class      = NM_DEVICE_CLASS(klass);
     NMDBusObjectClass *dbus_object_class = NM_DBUS_OBJECT_CLASS(klass);
 
     dbus_object_class->interface_infos = NM_DBUS_INTERFACE_INFOS(&interface_info_device_wpan);
@@ -225,11 +224,11 @@ nm_device_wpan_class_init(NMDeviceWpanClass *klass)
     (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_WPAN_DEVICE_FACTORY, NMWpanDeviceFactory))
 
 static NMDevice *
-create_device(NMDeviceFactory *     factory,
-              const char *          iface,
+create_device(NMDeviceFactory      *factory,
+              const char           *iface,
               const NMPlatformLink *plink,
-              NMConnection *        connection,
-              gboolean *            out_ignore)
+              NMConnection         *connection,
+              gboolean             *out_ignore)
 {
     return g_object_new(NM_TYPE_DEVICE_WPAN,
                         NM_DEVICE_IFACE,