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/network.c | |
parent | eaeabcd97a80b3a5522d0a1882ac6a8d3940edad (diff) |
hi_module_get_about() should return a const pointer
Diffstat (limited to 'modules/network.c')
-rw-r--r-- | modules/network.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/network.c b/modules/network.c index a40db80e..300cc041 100644 --- a/modules/network.c +++ b/modules/network.c @@ -433,15 +433,15 @@ void hi_module_deinit(void) g_free(__connections); } -ModuleAbout *hi_module_get_about(void) +const ModuleAbout *hi_module_get_about(void) { - static ModuleAbout ma[] = { - { - .author = "Leandro A. F. Pereira", - .description = N_("Gathers information about this computer's network connection"), - .version = VERSION, - .license = "GNU GPL version 2"} + static const ModuleAbout ma = { + .author = "Leandro A. F. Pereira", + .description = + N_("Gathers information about this computer's network connection"), + .version = VERSION, + .license = "GNU GPL version 2", }; - return ma; + return &ma; } |