aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup.c')
-rw-r--r--src/setup/gnunet-setup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index 84e55aaa..4e9ff6f4 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -242,7 +242,6 @@ static void
242load_options () 242load_options ()
243{ 243{
244 const struct GNUNET_SETUP_OptionSpecification *os; 244 const struct GNUNET_SETUP_OptionSpecification *os;
245 unsigned int i;
246 GObject *widget; 245 GObject *widget;
247 char *value; 246 char *value;
248 247
@@ -250,8 +249,7 @@ load_options ()
250 gtk_widget_hide (GTK_WIDGET ( 249 gtk_widget_hide (GTK_WIDGET (
251 GNUNET_SETUP_get_object ("GNUNET_setup_gns_hijack_checkbutton"))); 250 GNUNET_SETUP_get_object ("GNUNET_setup_gns_hijack_checkbutton")));
252#endif 251#endif
253 i = 0; 252 for (unsigned int i = 0; NULL != option_specifications[i].widget_name; i++)
254 while (NULL != option_specifications[i].widget_name)
255 { 253 {
256 os = &option_specifications[i]; 254 os = &option_specifications[i];
257 widget = GNUNET_SETUP_get_object (os->widget_name); 255 widget = GNUNET_SETUP_get_object (os->widget_name);
@@ -260,7 +258,6 @@ load_options ()
260 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 258 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
261 _ ("Widget `%s' not found\n"), 259 _ ("Widget `%s' not found\n"),
262 os->widget_name); 260 os->widget_name);
263 i++;
264 continue; 261 continue;
265 } 262 }
266 if (NULL != os->load_function) 263 if (NULL != os->load_function)
@@ -332,7 +329,6 @@ load_options ()
332 G_CALLBACK (&widget_state_change_callback), 329 G_CALLBACK (&widget_state_change_callback),
333 (void *) os); 330 (void *) os);
334 } 331 }
335 i++;
336 } 332 }
337} 333}
338 334