From 89b081181b20711bc0fe6b1e841747446998fbcc Mon Sep 17 00:00:00 2001 From: Antony Mee Date: Fri, 4 Aug 2006 12:17:04 +0000 Subject: [PATCH] * Tidied some indenting * Removed spurious "dbus_message_unref" calls git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1919 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- vpn-daemons/pptp/src/nm-ppp-starter.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/vpn-daemons/pptp/src/nm-ppp-starter.c b/vpn-daemons/pptp/src/nm-ppp-starter.c index bf843a5c72..6c41ec78d0 100644 --- a/vpn-daemons/pptp/src/nm-ppp-starter.c +++ b/vpn-daemons/pptp/src/nm-ppp-starter.c @@ -1296,7 +1296,7 @@ static DBusMessage *nm_ppp_dbus_get_state (DBusConnection *con, DBusMessage *mes /* * nm_ppp_dbus_notify_pid * - * Recieve the pid of the PPPD process from the PPPD plugin. + * Receive the pid of the PPPD process from the PPPD plugin. * */ static void nm_ppp_dbus_notify_pid (DBusConnection *con, DBusMessage *message, NmPPPData *data) @@ -1311,10 +1311,8 @@ static void nm_ppp_dbus_notify_pid (DBusConnection *con, DBusMessage *message, N DBUS_TYPE_UINT32, &(data->pid), DBUS_TYPE_INVALID)) { nm_warning ("PPPD plugin did not send a valid process ID"); - dbus_message_unref (message); return; } - dbus_message_unref (message); nm_info ("nm-ppp-starter: pppd spawned pid %d", data->pid); @@ -1464,13 +1462,13 @@ static void nm_ppp_dbus_process_helper_ip4_config (DBusConnection *con, DBusMess } if (!(signal = dbus_message_new_signal (NM_DBUS_PATH_PPP_STARTER, NM_DBUS_INTERFACE_PPP_STARTER, NM_DBUS_VPN_SIGNAL_IP4_CONFIG))) - { - nm_warning ("Not enough memory for new dbus message!"); - goto out; - } + { + nm_warning ("Not enough memory for new dbus message!"); + goto out; + } - /* PPP does not care about the MSS */ - mss = 0; + /* PPP does not care about the MSS */ + mss = 0; ip4_vpn_gateway=data->ip4_vpn_gateway.s_addr; dbus_message_append_args (signal,