diff options
Diffstat (limited to 'hardinfo2')
| -rw-r--r-- | hardinfo2/info.c | 6 | ||||
| -rw-r--r-- | hardinfo2/vendor.c | 2 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/hardinfo2/info.c b/hardinfo2/info.c index 6fbb0f35..fae16497 100644 --- a/hardinfo2/info.c +++ b/hardinfo2/info.c @@ -172,7 +172,7 @@ void info_add_computed_group_wo_extra(struct Info *info, const gchar *name, cons  void info_set_column_title(struct Info *info, const gchar *column, const gchar *title)  { -    int i; +    guint i;      for (i = 0; i < G_N_ELEMENTS(info_column_titles); i++) {          if (g_str_equal(info_column_titles[i], column)) { @@ -380,7 +380,7 @@ static void flatten_shell_param(GString *output, const struct InfoGroup *group,  static void flatten_shell_param_global(GString *output, const struct Info *info)  { -    int i; +    guint i;      g_string_append_printf(output, "ViewType=%d\n", info->view_type);      g_string_append_printf(output, "ShowColumnHeaders=%s\n", @@ -457,7 +457,7 @@ void info_remove_group(struct Info *info, guint index)  struct InfoField *info_find_field(struct Info *info, const gchar *tag, const gchar *name) {      struct InfoGroup *group;      struct InfoField *field; -    int gi,fi; +    guint gi,fi;      for (gi = 0; gi < info->groups->len; gi++) {          struct InfoGroup *group = &g_array_index(info->groups, struct InfoGroup, gi);          for (fi = 0; fi < group->fields->len; fi++) { diff --git a/hardinfo2/vendor.c b/hardinfo2/vendor.c index bd3f52fe..469acaa2 100644 --- a/hardinfo2/vendor.c +++ b/hardinfo2/vendor.c @@ -64,7 +64,7 @@ static Vendor vendors_builtin[] = {      if (vendor_die_on_error) exit(-1); }  static vendor_list vendors = NULL; -const vendor_list get_vendors_list() { return vendors; } +vendor_list get_vendors_list() { return vendors; }  gboolean vendor_die_on_error = FALSE;  /* sort the vendor list by length of match_string,  | 
