aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/daemon/daemon.c')
-rw-r--r--src/plugins/daemon/daemon.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/daemon/daemon.c b/src/plugins/daemon/daemon.c
index a3d0af10..2068d2dc 100644
--- a/src/plugins/daemon/daemon.c
+++ b/src/plugins/daemon/daemon.c
@@ -144,7 +144,7 @@ static void * doUpdateMenus(void * arg) {
144 statsEntryError 144 statsEntryError
145 = glade_xml_get_widget(getMainXML(), 145 = glade_xml_get_widget(getMainXML(),
146 "statusPixmapError"); 146 "statusPixmapError");
147 chooser 147 chooser
148 = glade_xml_get_widget(getMainXML(), 148 = glade_xml_get_widget(getMainXML(),
149 "gnunetdconfigFileChooserButton"); 149 "gnunetdconfigFileChooserButton");
150 GC_get_configuration_value_string(cfg, 150 GC_get_configuration_value_string(cfg,
@@ -186,9 +186,9 @@ static void * doUpdateMenus(void * arg) {
186 } 186 }
187 FREE(user); 187 FREE(user);
188 GC_free(dcfg); 188 GC_free(dcfg);
189 } 189 }
190 g_free(fn); 190 g_free(fn);
191 } 191 }
192 gtk_widget_hide(statsEntryYes); 192 gtk_widget_hide(statsEntryYes);
193 gtk_widget_set_sensitive(killEntry, FALSE); 193 gtk_widget_set_sensitive(killEntry, FALSE);
194 if (canStart && isLocal) { 194 if (canStart && isLocal) {
@@ -218,7 +218,7 @@ static void cronCheckDaemon(void * dummy) {
218 ret = 1; 218 ret = 1;
219 else 219 else
220 ret = 0; 220 ret = 0;
221 gtkSaveCall(&doUpdateMenus, &ret); 221 gtkSaveCall(&doUpdateMenus, &ret);
222} 222}
223 223
224 224
@@ -230,7 +230,7 @@ void on_startDaemon_clicked_daemon(GtkWidget * widget,
230 GtkWidget * launchEntry; 230 GtkWidget * launchEntry;
231 GtkWidget * chooser; 231 GtkWidget * chooser;
232 char * fn; 232 char * fn;
233 233
234 launchEntry 234 launchEntry
235 = glade_xml_get_widget(getMainXML(), 235 = glade_xml_get_widget(getMainXML(),
236 "startDaemon"); 236 "startDaemon");
@@ -241,14 +241,14 @@ void on_startDaemon_clicked_daemon(GtkWidget * widget,
241 return; 241 return;
242 } else { 242 } else {
243 addLogEntry(_("Launching gnunetd...")); 243 addLogEntry(_("Launching gnunetd..."));
244 chooser 244 chooser
245 = glade_xml_get_widget(getMainXML(), 245 = glade_xml_get_widget(getMainXML(),
246 "gnunetdconfigFileChooserButton"); 246 "gnunetdconfigFileChooserButton");
247 fn = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(chooser)); 247 fn = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(chooser));
248 GE_BREAK(ectx, fn != NULL); 248 GE_BREAK(ectx, fn != NULL);
249 if (SYSERR != os_daemon_start(ectx, 249 if (SYSERR != os_daemon_start(ectx,
250 cfg, 250 cfg,
251 fn, 251 fn,
252 YES)) { 252 YES)) {
253 addLogEntry(_("Launched gnunetd")); 253 addLogEntry(_("Launched gnunetd"));
254 } else { 254 } else {
@@ -353,7 +353,7 @@ void init_daemon(struct GE_Context * e,
353 daemon_config); 353 daemon_config);
354 } 354 }
355 FREE(daemon_config); 355 FREE(daemon_config);
356 356
357 cron = cron_create(ectx); 357 cron = cron_create(ectx);
358 cron_add_job(cron, 358 cron_add_job(cron,
359 &cronCheckDaemon, 359 &cronCheckDaemon,