From 707b2484dadded505f766be4593d127ea16a2892 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 3 May 2020 10:51:38 -0700 Subject: hi_exported_methods() should return a const pointer --- modules/benchmark.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/benchmark.c') 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; } -- cgit v1.2.3