summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hardinfo/util.c6
-rw-r--r--includes/hardinfo.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c
index 55517a50..964617d4 100644
--- a/hardinfo/util.c
+++ b/hardinfo/util.c
@@ -1206,7 +1206,7 @@ h_hash_table_remove_all(GHashTable *hash_table)
}
gfloat
-h_sysfs_read_float(gchar *endpoint, gchar *entry)
+h_sysfs_read_float(const gchar *endpoint, const gchar *entry)
{
gchar *tmp, *buffer;
gfloat return_value = 0.0f;
@@ -1222,7 +1222,7 @@ h_sysfs_read_float(gchar *endpoint, gchar *entry)
}
gint
-h_sysfs_read_int(gchar *endpoint, gchar *entry)
+h_sysfs_read_int(const gchar *endpoint, const gchar *entry)
{
gchar *tmp, *buffer;
gint return_value = 0;
@@ -1238,7 +1238,7 @@ h_sysfs_read_int(gchar *endpoint, gchar *entry)
}
gchar *
-h_sysfs_read_string(gchar *endpoint, gchar *entry)
+h_sysfs_read_string(const gchar *endpoint, const gchar *entry)
{
gchar *tmp, *return_value;
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;