Remove unused variables

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3833 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-07-19 01:09:19 +00:00
parent b468ac5dcb
commit 79722b9998
2 changed files with 3 additions and 5 deletions

View file

@ -250,6 +250,8 @@ main (int argc, char *argv[])
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 @@ main (int argc, char *argv[])
{ "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 @@ main (int argc, char *argv[])
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);

View file

@ -357,7 +357,6 @@ update_connection (NMVpnPluginUiWidgetInterface *iface,
NMSettingVPN *s_vpn;
NMSettingVPNProperties *s_vpn_props;
GtkWidget *widget;
GValue *value;
char *str;
GtkTreeModel *model;
GtkTreeIter iter;
@ -597,7 +596,6 @@ import (NMVpnPluginUiInterface *iface, const char *path, GError **error)
GHashTable *pcf;
const char *buf;
gboolean have_value;
gboolean complete = TRUE;
pcf = pcf_file_load (path);
if (!pcf) {
@ -865,7 +863,6 @@ static char *
get_suggested_name (NMVpnPluginUiInterface *iface, NMConnection *connection)
{
NMSettingConnection *s_con;
char *suggested;
g_return_val_if_fail (connection != NULL, NULL);