diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2020-05-03 10:51:38 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2020-05-03 14:08:12 -0700 |
commit | 707b2484dadded505f766be4593d127ea16a2892 (patch) | |
tree | 58ad0a8ce03d5f631fe9006670fd86878be1ef4d /modules/benchmark.c | |
parent | cedaec6c9e6611bec090247df09f6138c19d2fc5 (diff) |
hi_exported_methods() should return a const pointer
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; } |