diff options
Diffstat (limited to 'src/lib/eventloop.c')
-rw-r--r-- | src/lib/eventloop.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c index 50b294f8..3e03a085 100644 --- a/src/lib/eventloop.c +++ b/src/lib/eventloop.c | |||
@@ -106,7 +106,7 @@ struct GNUNET_GTK_MainLoop | |||
106 | /** | 106 | /** |
107 | * Task we keep around just to keep the event loop running. | 107 | * Task we keep around just to keep the event loop running. |
108 | */ | 108 | */ |
109 | struct GNUNET_SCHEDULER_Task * dummy_task; | 109 | struct GNUNET_SCHEDULER_Task *dummy_task; |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * Remaining command-line arguments. | 112 | * Remaining command-line arguments. |
@@ -359,9 +359,9 @@ keepalive_task (void *cls) | |||
359 | struct GNUNET_GTK_MainLoop *ml = cls; | 359 | struct GNUNET_GTK_MainLoop *ml = cls; |
360 | 360 | ||
361 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Dummy task was scheduled\n"); | 361 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Dummy task was scheduled\n"); |
362 | ml->dummy_task = | 362 | ml->dummy_task |
363 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 363 | = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, |
364 | &keepalive_task, ml); | 364 | &keepalive_task, ml); |
365 | } | 365 | } |
366 | 366 | ||
367 | 367 | ||
@@ -912,7 +912,8 @@ run_main_loop (void *cls, char *const *args, const char *cfgfile, | |||
912 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error (i.e. bad command-line options, etc) | 912 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error (i.e. bad command-line options, etc) |
913 | */ | 913 | */ |
914 | int | 914 | int |
915 | GNUNET_GTK_main_loop_start (const char *binary_name, const char *binary_help, | 915 | GNUNET_GTK_main_loop_start (const char *binary_name, |
916 | const char *binary_help, | ||
916 | int argc, char *const *argv, | 917 | int argc, char *const *argv, |
917 | struct GNUNET_GETOPT_CommandLineOption *options, | 918 | struct GNUNET_GETOPT_CommandLineOption *options, |
918 | const char *main_window_file, | 919 | const char *main_window_file, |
@@ -925,7 +926,8 @@ GNUNET_GTK_main_loop_start (const char *binary_name, const char *binary_help, | |||
925 | ml.main_window_file = main_window_file; | 926 | ml.main_window_file = main_window_file; |
926 | ml.main_task = main_task; | 927 | ml.main_task = main_task; |
927 | ret = | 928 | ret = |
928 | GNUNET_PROGRAM_run (argc, argv, binary_name, binary_help, options, | 929 | GNUNET_PROGRAM_run (argc, argv, binary_name, |
930 | binary_help, options, | ||
929 | &run_main_loop, &ml); | 931 | &run_main_loop, &ml); |
930 | if (NULL != ml.cached_poll_array) | 932 | if (NULL != ml.cached_poll_array) |
931 | g_free (ml.cached_poll_array); | 933 | g_free (ml.cached_poll_array); |