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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index 6a4aee80..d50cf39a 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -84,7 +84,7 @@ static int do_gksu;
84 * Show all configuration options, even if we are run 84 * Show all configuration options, even if we are run
85 * as a normal user and a 'gnunet' user exists and thus 85 * as a normal user and a 'gnunet' user exists and thus
86 * most options should not apply to the normal user. 86 * most options should not apply to the normal user.
87 */ 87 */
88static int force_full_setup; 88static int force_full_setup;
89#endif 89#endif
90 90
@@ -136,7 +136,7 @@ void
136GNUNET_setup_notebook_switch_page_cb (GtkNotebook *notebook, 136GNUNET_setup_notebook_switch_page_cb (GtkNotebook *notebook,
137 GtkWidget *page, 137 GtkWidget *page,
138 guint page_num, 138 guint page_num,
139 gpointer user_data) 139 gpointer user_data)
140{ 140{
141 GtkWidget *help; 141 GtkWidget *help;
142 GtkWidget *gnu; 142 GtkWidget *gnu;
@@ -146,7 +146,7 @@ GNUNET_setup_notebook_switch_page_cb (GtkNotebook *notebook,
146 if (gnu == page) 146 if (gnu == page)
147 gtk_widget_hide (help); 147 gtk_widget_hide (help);
148 else 148 else
149 gtk_widget_show (help); 149 gtk_widget_show (help);
150} 150}
151 151
152 152
@@ -260,7 +260,7 @@ load_options ()
260 GObject *widget; 260 GObject *widget;
261 char *value; 261 char *value;
262 262
263#ifndef LINUX 263#ifndef LINUX
264 gtk_widget_hide (GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_gns_hijack_checkbutton"))); 264 gtk_widget_hide (GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_gns_hijack_checkbutton")));
265#endif 265#endif
266 i = 0; 266 i = 0;
@@ -340,7 +340,7 @@ load_options ()
340 * 340 *
341 * @return GNUNET_OK on success 341 * @return GNUNET_OK on success
342 */ 342 */
343static int 343static int
344write_configuration () 344write_configuration ()
345{ 345{
346 struct GNUNET_CONFIGURATION_Handle *cfgDefault; 346 struct GNUNET_CONFIGURATION_Handle *cfgDefault;
@@ -398,7 +398,7 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
398/** 398/**
399 * Write configuration to dis, (re)start the namestore process and 399 * Write configuration to dis, (re)start the namestore process and
400 * reload the namestore models. 400 * reload the namestore models.
401 * 401 *
402 * 402 *
403 * @param cls closure (unused) 403 * @param cls closure (unused)
404 * @param tc scheduler context (unused) 404 * @param tc scheduler context (unused)
@@ -540,7 +540,7 @@ try_gksu (const char *username)
540 540
541/** 541/**
542 * Called once the autoconfiguration is done. Triggers shutdown. 542 * Called once the autoconfiguration is done. Triggers shutdown.
543 * 543 *
544 * @param cls unused 544 * @param cls unused
545 */ 545 */
546static void 546static void
@@ -576,7 +576,7 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
576 GNUNET_GTK_main_loop_quit (cls); 576 GNUNET_GTK_main_loop_quit (cls);
577 return; 577 return;
578 } 578 }
579#endif 579#endif
580 580
581 ml = cls; 581 ml = cls;
582 if (GNUNET_OK != GNUNET_GTK_main_loop_build_window (ml, NULL)) 582 if (GNUNET_OK != GNUNET_GTK_main_loop_build_window (ml, NULL))
@@ -584,8 +584,8 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
584 584
585 cfgName = GNUNET_GTK_main_loop_get_configuration_file (ml); 585 cfgName = GNUNET_GTK_main_loop_get_configuration_file (ml);
586 cfg = GNUNET_CONFIGURATION_create (); 586 cfg = GNUNET_CONFIGURATION_create ();
587 587
588#ifndef MINGW 588#ifndef MINGW
589 if ( (0 != my_uid) && 589 if ( (0 != my_uid) &&
590 (NULL != gnunet_pw) && 590 (NULL != gnunet_pw) &&
591 (my_uid != gnunet_pw->pw_uid) && 591 (my_uid != gnunet_pw->pw_uid) &&