aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-05-03 10:51:38 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-05-03 14:08:12 -0700
commit707b2484dadded505f766be4593d127ea16a2892 (patch)
tree58ad0a8ce03d5f631fe9006670fd86878be1ef4d /modules/benchmark.c
parentcedaec6c9e6611bec090247df09f6138c19d2fc5 (diff)
hi_exported_methods() should return a const pointer
Diffstat (limited to 'modules/benchmark.c')
-rw-r--r--modules/benchmark.c7
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;
}