aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-06-28 21:52:14 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-06-29 17:58:52 -0700
commit31a69327e922297fcb0647e6ca0256da83218548 (patch)
tree2e099bf6f18638bfbdb16db2455e520f20918ac9 /modules/devices.c
parentc8fdf19ac93b4b7247a41ea54cca1d8b85381107 (diff)
Memory Devices: a little name cleanup
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/devices.c b/modules/devices.c
index 3780ac3d..ca31f803 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -121,9 +121,9 @@ gchar *battery_list = NULL;
gchar *lginterval = NULL;
/* in dmi_memory.c */
-gchar *dmi_mem_socket_info();
-gboolean dmi_mem_show_hinote(const char **msg);
-gchar *dmi_mem_info = NULL;
+gchar *memory_devices_get_info();
+gboolean memory_devices_hinote(const char **msg);
+gchar *memory_devices_info = NULL;
#include <vendor.h>
@@ -536,9 +536,9 @@ void scan_dmi(gboolean reload)
void scan_dmi_mem(gboolean reload)
{
SCAN_START();
- if (dmi_mem_info)
- g_free(dmi_mem_info);
- dmi_mem_info = dmi_mem_socket_info();
+ if (memory_devices_info)
+ g_free(memory_devices_info);
+ memory_devices_info = memory_devices_get_info();
SCAN_END();
}
@@ -632,7 +632,7 @@ gchar *callback_dmi()
gchar *callback_dmi_mem()
{
- return g_strdup(dmi_mem_info);
+ return g_strdup(memory_devices_info);
}
gchar *callback_dtree()
@@ -803,7 +803,7 @@ const gchar *hi_note_func(gint entry)
}
else if (entry == ENTRY_DMI_MEM){
const char *msg;
- if (dmi_mem_show_hinote(&msg)) {
+ if (memory_devices_hinote(&msg)) {
return msg;
}
}