aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hardinfo2/util.c2
-rw-r--r--hardinfo2/vendor.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c
index 924b9b45..266ce4eb 100644
--- a/hardinfo2/util.c
+++ b/hardinfo2/util.c
@@ -1127,7 +1127,7 @@ gint
h_sysfs_read_int(gchar *endpoint, gchar *entry)
{
gchar *tmp, *buffer;
- gint return_value = 0.0f;
+ gint return_value = 0;
tmp = g_build_filename(endpoint, entry, NULL);
if (g_file_get_contents(tmp, &buffer, NULL, NULL))
diff --git a/hardinfo2/vendor.c b/hardinfo2/vendor.c
index 1515c379..0897341a 100644
--- a/hardinfo2/vendor.c
+++ b/hardinfo2/vendor.c
@@ -119,13 +119,13 @@ void vendor_init(void)
gchar *tmp;
gint num_vendors;
- DEBUG("loading vendor.conf");
+ DEBUG("loading %s", path);
vendors = g_key_file_new();
if (g_key_file_load_from_file(vendors, path, 0, NULL)) {
num_vendors = g_key_file_get_integer(vendors, "vendors", "number", NULL);
- for (i = num_vendors--; i >= 0; i--) {
+ for (i = num_vendors - 1; i >= 0; i--) {
Vendor *v = g_new0(Vendor, 1);
tmp = g_strdup_printf("vendor%d", i);