summaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 925822a9..0346e3e2 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -953,9 +953,9 @@ const gchar *get_memory_desc(void) // [1] const (as to say "don't free")
return (gchar*)idle_free(avail); // [1] idle_free()
}
-ShellModuleMethod *hi_exported_methods(void)
+const ShellModuleMethod *hi_exported_methods(void)
{
- static ShellModuleMethod m[] = {
+ static const ShellModuleMethod m[] = {
{"getOSKernel", get_os_kernel},
{"getOS", get_os},
{"getDisplaySummary", get_display_summary},
@@ -964,7 +964,7 @@ ShellModuleMethod *hi_exported_methods(void)
{"getKernelModuleDescription", get_kernel_module_description},
{"getMemoryTotal", get_memory_total},
{"getMemoryDesc", get_memory_desc},
- {NULL}
+ {NULL},
};
return m;