NetworkManager r3833 - in trunk/vpn-daemons/vpnc: auth-dialog properties



Author: dcbw
Date: Sat Jul 19 01:09:19 2008
New Revision: 3833
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3833&view=rev

Log:
Remove unused variables

Modified:
   trunk/vpn-daemons/vpnc/auth-dialog/main.c
   trunk/vpn-daemons/vpnc/properties/nm-vpnc.c

Modified: trunk/vpn-daemons/vpnc/auth-dialog/main.c
==============================================================================
--- trunk/vpn-daemons/vpnc/auth-dialog/main.c	(original)
+++ trunk/vpn-daemons/vpnc/auth-dialog/main.c	Sat Jul 19 01:09:19 2008
@@ -250,6 +250,8 @@
 	static gchar *vpn_name = NULL;
 	static gchar *vpn_id = NULL;
 	static gchar *vpn_service = NULL;
+	char buf[1];
+	int ret;
 	GOptionContext *context;
 	GnomeProgram *program;
 	GOptionEntry entries[] =
@@ -260,7 +262,6 @@
 			{ "service", 's', 0, G_OPTION_ARG_STRING, &vpn_service, "VPN service type", NULL},
 			{ NULL }
 		};
-	char buf[1];
 
 	bindtextdomain (GETTEXT_PACKAGE, NULL);
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -305,7 +306,7 @@
 	g_slist_free (passwords);
 
 	/* wait for data on stdin  */
-	fread (buf, sizeof (char), sizeof (buf), stdin);
+	ret = fread (buf, sizeof (char), sizeof (buf), stdin);
 
 out:
 	g_object_unref (program);

Modified: trunk/vpn-daemons/vpnc/properties/nm-vpnc.c
==============================================================================
--- trunk/vpn-daemons/vpnc/properties/nm-vpnc.c	(original)
+++ trunk/vpn-daemons/vpnc/properties/nm-vpnc.c	Sat Jul 19 01:09:19 2008
@@ -357,7 +357,6 @@
 	NMSettingVPN *s_vpn;
 	NMSettingVPNProperties *s_vpn_props;
 	GtkWidget *widget;
-	GValue *value;
 	char *str;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
@@ -597,7 +596,6 @@
 	GHashTable *pcf;
 	const char *buf;
 	gboolean have_value;
-	gboolean complete = TRUE;
 
 	pcf = pcf_file_load (path);
 	if (!pcf) {
@@ -865,7 +863,6 @@
 get_suggested_name (NMVpnPluginUiInterface *iface, NMConnection *connection)
 {
 	NMSettingConnection *s_con;
-	char *suggested;
 
 	g_return_val_if_fail (connection != NULL, NULL);
 



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