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/devices.c | |
parent | eaeabcd97a80b3a5522d0a1882ac6a8d3940edad (diff) |
hi_module_get_about() should return a const pointer
Diffstat (limited to 'modules/devices.c')
-rw-r--r-- | modules/devices.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/devices.c b/modules/devices.c index a90cbc0a..fef8b559 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -867,17 +867,16 @@ void hi_module_deinit(void) g_module_close(cups); } -ModuleAbout *hi_module_get_about(void) -{ - static ModuleAbout ma[] = { - { - .author = "Leandro A. F. Pereira", - .description = N_("Gathers information about hardware devices"), - .version = VERSION, - .license = "GNU GPL version 2"} +const ModuleAbout *hi_module_get_about(void) +{ + const static ModuleAbout ma = { + .author = "Leandro A. F. Pereira", + .description = N_("Gathers information about hardware devices"), + .version = VERSION, + .license = "GNU GPL version 2", }; - return ma; + return &ma; } gchar **hi_module_get_dependencies(void) |