diff options
Diffstat (limited to 'modules/benchmark.c')
| -rw-r--r-- | modules/benchmark.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c index ab4f8145..6bf41d45 100644 --- a/modules/benchmark.c +++ b/modules/benchmark.c @@ -751,9 +751,12 @@ static gchar *run_benchmark(gchar *name)      return NULL;  } -ShellModuleMethod *hi_exported_methods(void) +const ShellModuleMethod *hi_exported_methods(void)  { -    static ShellModuleMethod m[] = {{"runBenchmark", run_benchmark}, {NULL}}; +    static const ShellModuleMethod m[] = { +        {"runBenchmark", run_benchmark}, +        {NULL}, +    };      return m;  }  | 
