diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2020-05-03 10:46:10 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2020-05-03 14:08:12 -0700 |
commit | 732eff53f0510108732b26cffdac60a99905b4c5 (patch) | |
tree | f3b3867bcfa2be75235057350368d1abd048c1a8 /modules/benchmark.c | |
parent | eaeabcd97a80b3a5522d0a1882ac6a8d3940edad (diff) |
hi_module_get_about() should return a const pointer
Diffstat (limited to 'modules/benchmark.c')
-rw-r--r-- | modules/benchmark.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c index 068b466c..0d337ec1 100644 --- a/modules/benchmark.c +++ b/modules/benchmark.c @@ -649,15 +649,16 @@ guchar hi_module_get_weight(void) { return 240; } ModuleEntry *hi_module_get_entries(void) { return entries; } -ModuleAbout *hi_module_get_about(void) +const ModuleAbout *hi_module_get_about(void) { - static ModuleAbout ma[] = { - {.author = "Leandro A. F. Pereira", - .description = N_("Perform tasks and compare with other systems"), - .version = VERSION, - .license = "GNU GPL version 2"}}; - - return ma; + static const ModuleAbout ma = { + .author = "Leandro A. F. Pereira", + .description = N_("Perform tasks and compare with other systems"), + .version = VERSION, + .license = "GNU GPL version 2", + }; + + return &ma; } static gchar *get_benchmark_results() |