aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r--src/statistics/gnunet-statistics.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index 3742a496d..0cbafa68f 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -104,14 +104,12 @@ cleanup (void *cls, int success)
104 * Main function that will be run by the scheduler. 104 * Main function that will be run by the scheduler.
105 * 105 *
106 * @param cls closure 106 * @param cls closure
107 * @param sched the scheduler to use
108 * @param args remaining command-line arguments 107 * @param args remaining command-line arguments
109 * @param cfgfile name of the configuration file used (for saving, can be NULL!) 108 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
110 * @param cfg configuration 109 * @param cfg configuration
111 */ 110 */
112static void 111static void
113run (void *cls, 112run (void *cls,
114 struct GNUNET_SCHEDULER_Handle *sched,
115 char *const *args, 113 char *const *args,
116 const char *cfgfile, 114 const char *cfgfile,
117 const struct GNUNET_CONFIGURATION_Handle *cfg) 115 const struct GNUNET_CONFIGURATION_Handle *cfg)
@@ -128,7 +126,7 @@ run (void *cls,
128 ret = 1; 126 ret = 1;
129 return; 127 return;
130 } 128 }
131 h = GNUNET_STATISTICS_create (sched, subsystem, cfg); 129 h = GNUNET_STATISTICS_create (subsystem, cfg);
132 if (h == NULL) 130 if (h == NULL)
133 { 131 {
134 ret = 1; 132 ret = 1;
@@ -138,7 +136,7 @@ run (void *cls,
138 GNUNET_STATISTICS_destroy (h, GNUNET_YES); 136 GNUNET_STATISTICS_destroy (h, GNUNET_YES);
139 return; 137 return;
140 } 138 }
141 h = GNUNET_STATISTICS_create (sched, "gnunet-statistics", cfg); 139 h = GNUNET_STATISTICS_create ("gnunet-statistics", cfg);
142 if (h == NULL) 140 if (h == NULL)
143 { 141 {
144 ret = 1; 142 ret = 1;