aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-05-03 10:46:10 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-05-03 14:08:12 -0700
commit732eff53f0510108732b26cffdac60a99905b4c5 (patch)
treef3b3867bcfa2be75235057350368d1abd048c1a8 /modules/computer.c
parenteaeabcd97a80b3a5522d0a1882ac6a8d3940edad (diff)
hi_module_get_about() should return a const pointer
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 49a1511f..925822a9 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -1069,17 +1069,16 @@ void hi_module_init(void)
init_memory_labels();
}
-ModuleAbout *hi_module_get_about(void)
+const ModuleAbout *hi_module_get_about(void)
{
- static ModuleAbout ma[] = {
- {
- .author = "Leandro A. F. Pereira",
- .description = N_("Gathers high-level computer information"),
- .version = VERSION,
- .license = "GNU GPL version 2"}
+ static const ModuleAbout ma = {
+ .author = "Leandro A. F. Pereira",
+ .description = N_("Gathers high-level computer information"),
+ .version = VERSION,
+ .license = "GNU GPL version 2",
};
- return ma;
+ return &ma;
}
static const gchar *hinote_kmod() {