diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2019-06-29 18:17:54 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2019-06-29 18:17:54 -0700 |
commit | 9dadc700d826dcb57896f3461aa0ae0102e2553e (patch) | |
tree | 8283282ecd64f1308c280d82f137b4d4e70bc493 /includes/hardinfo.h | |
parent | 13b09297cf1e34fa2a6924bd19897f0afffdbd24 (diff) |
h_sysfs_read_*() should take const pointers as args
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r-- | includes/hardinfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 6af37ef0..8888565f 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -161,9 +161,9 @@ gchar *module_call_method(gchar *method); gchar *module_call_method_param(gchar * method, gchar * parameter); /* Sysfs stuff */ -gfloat h_sysfs_read_float(gchar *endpoint, gchar *entry); -gint h_sysfs_read_int(gchar *endpoint, gchar *entry); -gchar *h_sysfs_read_string(gchar *endpoint, gchar *entry); +gfloat h_sysfs_read_float(const gchar *endpoint, const gchar *entry); +gint h_sysfs_read_int(const gchar *endpoint, const gchar *entry); +gchar *h_sysfs_read_string(const gchar *endpoint, const gchar *entry); #define SCAN_START() static gboolean scanned = FALSE; if (reload) scanned = FALSE; if (scanned) return; #define SCAN_END() scanned = TRUE; |