summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-07-28 22:32:31 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-07-28 22:32:31 -0700
commitb836f2aa417902412ff9d7aa3bb5ce52fd107baf (patch)
tree6f74e584fec64d1da35a8d9d2a450451a9142bd2 /modules
parent8e508ae979492df6e214609d6672fc8a5e44d2b9 (diff)
Do not use "stdout" as a member in the struct
Some libcs will define macros that redefine these tokens.
Diffstat (limited to 'modules')
-rw-r--r--modules/computer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 9bb69f78..c0302a87 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -260,7 +260,7 @@ void scan_dev(gboolean reload)
gchar *compiler_name;
gchar *version_command;
gchar *regex;
- gboolean stdout;
+ gboolean read_stdout;
} detect_lang[] = {
{ N_("Scripting Languages"), NULL, FALSE },
{ N_("Gambas3 (gbr3)"), "gbr3 --version", "\\d+\\.\\d+\\.\\d+", TRUE },
@@ -318,7 +318,7 @@ void scan_dev(gboolean reload)
continue;
}
- if (detect_lang[i].stdout) {
+ if (detect_lang[i].read_stdout) {
found = hardinfo_spawn_command_line_sync(detect_lang[i].version_command, &output, &ignored, NULL, NULL);
} else {
found = hardinfo_spawn_command_line_sync(detect_lang[i].version_command, &ignored, &output, NULL, NULL);