diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2020-05-03 10:51:38 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2020-05-03 14:08:12 -0700 |
commit | 707b2484dadded505f766be4593d127ea16a2892 (patch) | |
tree | 58ad0a8ce03d5f631fe9006670fd86878be1ef4d /hardinfo/util.c | |
parent | cedaec6c9e6611bec090247df09f6138c19d2fc5 (diff) |
hi_exported_methods() should return a const pointer
Diffstat (limited to 'hardinfo/util.c')
-rw-r--r-- | hardinfo/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c index d8c77e78..4a27299a 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -583,7 +583,7 @@ static GHashTable *__module_methods = NULL; static void module_register_methods(ShellModule * module) { - ShellModuleMethod *(*get_methods) (void); + const ShellModuleMethod *(*get_methods)(void); gchar *method_name; if (__module_methods == NULL) { @@ -591,8 +591,8 @@ static void module_register_methods(ShellModule * module) } if (g_module_symbol - (module->dll, "hi_exported_methods", (gpointer) & get_methods)) { - ShellModuleMethod *methods; + (module->dll, "hi_exported_methods", (gpointer)&get_methods)) { + const ShellModuleMethod *methods; for (methods = get_methods(); methods->name; methods++) { ShellModuleMethod method = *methods; |