From ef913edc0c64a84730bfbf1ec2939cfd7f94ef72 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 10 Dec 2011 23:01:29 +0000 Subject: [PATCH] Code cleanup --- src/plugins/gprs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/gprs.c b/src/plugins/gprs.c index 890d91a..597064a 100644 --- a/src/plugins/gprs.c +++ b/src/plugins/gprs.c @@ -101,7 +101,7 @@ static int _gprs_init(PhonePlugin * plugin) #endif if((gprs = object_new(sizeof(*gprs))) == NULL) - return 1; + return -1; plugin->priv = gprs; gprs->source = 0; gprs->roaming = FALSE; @@ -262,13 +262,13 @@ static void _gprs_settings(PhonePlugin * plugin) static GtkWidget * _settings_preferences(GPRS * gprs) { + GtkSizeGroup * group; GtkWidget * vbox; GtkWidget * hbox; GtkWidget * widget; - GtkSizeGroup * group; - vbox = gtk_vbox_new(FALSE, 4); group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); + vbox = gtk_vbox_new(FALSE, 4); /* attachment */ gprs->attach = gtk_check_button_new_with_label( "Force GPRS registration");