[network-manager-pptp/danw/cleanup-bgo746693] all: fix indenting



commit e00d07194ca61fc4008603a595b4a3c3342a8d37
Author: Jiří Klimeš <jklimes redhat com>
Date:   Wed Mar 25 13:50:28 2015 +0100

    all: fix indenting

 properties/advanced-dialog.c |    2 +-
 properties/nm-pptp.c         |   20 ++++++++++----------
 src/nm-pptp-pppd-plugin.c    |   18 ++++++++----------
 3 files changed, 19 insertions(+), 21 deletions(-)
---
diff --git a/properties/advanced-dialog.c b/properties/advanced-dialog.c
index 1ff0cd3..54c4325 100644
--- a/properties/advanced-dialog.c
+++ b/properties/advanced-dialog.c
@@ -281,7 +281,7 @@ auth_methods_setup (GtkBuilder *builder, GHashTable *hash)
        value = g_hash_table_lookup (hash, NM_PPTP_KEY_REQUIRE_MPPE);
        if (value && !strcmp (value, "yes"))
                use_mppe = TRUE;
-       
+
        /* Or MPPE-128 */
        value = g_hash_table_lookup (hash, NM_PPTP_KEY_REQUIRE_MPPE_128);
        if (value && !strcmp (value, "yes"))
diff --git a/properties/nm-pptp.c b/properties/nm-pptp.c
index af7dd14..54f6853 100644
--- a/properties/nm-pptp.c
+++ b/properties/nm-pptp.c
@@ -59,16 +59,16 @@ typedef void (*ChangedCallback) (GtkWidget *widget, gpointer user_data);
 static void pptp_plugin_ui_interface_init (NMVpnPluginUiInterface *iface_class);
 
 G_DEFINE_TYPE_EXTENDED (PptpPluginUi, pptp_plugin_ui, G_TYPE_OBJECT, 0,
-                                               G_IMPLEMENT_INTERFACE (NM_TYPE_VPN_PLUGIN_UI_INTERFACE,
-                                                                                          
pptp_plugin_ui_interface_init))
+                        G_IMPLEMENT_INTERFACE (NM_TYPE_VPN_PLUGIN_UI_INTERFACE,
+                                               pptp_plugin_ui_interface_init))
 
 /************** UI widget class **************/
 
 static void pptp_plugin_ui_widget_interface_init (NMVpnPluginUiWidgetInterface *iface_class);
 
 G_DEFINE_TYPE_EXTENDED (PptpPluginUiWidget, pptp_plugin_ui_widget, G_TYPE_OBJECT, 0,
-                                               G_IMPLEMENT_INTERFACE (NM_TYPE_VPN_PLUGIN_UI_WIDGET_INTERFACE,
-                                                                                          
pptp_plugin_ui_widget_interface_init))
+                        G_IMPLEMENT_INTERFACE (NM_TYPE_VPN_PLUGIN_UI_WIDGET_INTERFACE,
+                                               pptp_plugin_ui_widget_interface_init))
 
 #define PPTP_PLUGIN_UI_WIDGET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PPTP_TYPE_PLUGIN_UI_WIDGET, 
PptpPluginUiWidgetPrivate))
 
@@ -751,16 +751,16 @@ pptp_plugin_ui_class_init (PptpPluginUiClass *req_class)
        object_class->get_property = get_property;
 
        g_object_class_override_property (object_class,
-                                                                         
NM_VPN_PLUGIN_UI_INTERFACE_PROP_NAME,
-                                                                         NM_VPN_PLUGIN_UI_INTERFACE_NAME);
+                                         NM_VPN_PLUGIN_UI_INTERFACE_PROP_NAME,
+                                         NM_VPN_PLUGIN_UI_INTERFACE_NAME);
 
        g_object_class_override_property (object_class,
-                                                                         
NM_VPN_PLUGIN_UI_INTERFACE_PROP_DESC,
-                                                                         NM_VPN_PLUGIN_UI_INTERFACE_DESC);
+                                         NM_VPN_PLUGIN_UI_INTERFACE_PROP_DESC,
+                                         NM_VPN_PLUGIN_UI_INTERFACE_DESC);
 
        g_object_class_override_property (object_class,
-                                                                         
NM_VPN_PLUGIN_UI_INTERFACE_PROP_SERVICE,
-                                                                         NM_VPN_PLUGIN_UI_INTERFACE_SERVICE);
+                                         NM_VPN_PLUGIN_UI_INTERFACE_PROP_SERVICE,
+                                         NM_VPN_PLUGIN_UI_INTERFACE_SERVICE);
 }
 
 static void
diff --git a/src/nm-pptp-pppd-plugin.c b/src/nm-pptp-pppd-plugin.c
index 0d1e7a3..302274a 100644
--- a/src/nm-pptp-pppd-plugin.c
+++ b/src/nm-pptp-pppd-plugin.c
@@ -18,7 +18,6 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  *
- * 
  */
 
 #include <string.h>
@@ -175,11 +174,10 @@ nm_ip_up (void *data, int arg)
                return;
        }
 
-       hash = g_hash_table_new_full (g_str_hash, g_str_equal,
-                                                       NULL, value_destroy);
+       hash = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, value_destroy);
 
-       g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_TUNDEV, 
-                                        str_to_gvalue (ifname));
+       g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_TUNDEV,
+                            str_to_gvalue (ifname));
 
        /* Prefer the peer options remote address first, _unless_ pppd made the
         * address up, at which point prefer the local options remote address,
@@ -197,8 +195,8 @@ nm_ip_up (void *data, int arg)
                                     uint_to_gvalue (peer_opts.hisaddr));
        }
 
-       g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_ADDRESS, 
-                                        uint_to_gvalue (opts.ouraddr));
+       g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_ADDRESS,
+                            uint_to_gvalue (opts.ouraddr));
 
        g_hash_table_insert (hash, NM_VPN_PLUGIN_IP4_CONFIG_PREFIX, uint_to_gvalue (32));
 
@@ -332,9 +330,9 @@ plugin_init (void)
        }
 
        proxy = dbus_g_proxy_new_for_name (bus,
-                                                               NM_DBUS_SERVICE_PPTP_PPP,
-                                                               NM_DBUS_PATH_PPTP_PPP,
-                                                               NM_DBUS_INTERFACE_PPTP_PPP);
+                                          NM_DBUS_SERVICE_PPTP_PPP,
+                                          NM_DBUS_PATH_PPTP_PPP,
+                                          NM_DBUS_INTERFACE_PPTP_PPP);
 
        dbus_g_connection_unref (bus);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]