summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/Command.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-03-27 15:26:32 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-27 16:41:39 -0700
commit4674577d80e9b11f7311b1ad88e1ec45a0313591 (patch)
tree071725e1b2825ace11eea5bd508602821c9e4c39 /Userland/Libraries/LibCore/Command.h
parentf3f3b32a0054d523cd27483622a04dabacb5f869 (diff)
downloadserenity-4674577d80e9b11f7311b1ad88e1ec45a0313591.zip
Everywhere: Rename CommandResult stdout, stderr members to output, error
The names stdout / stderr are bound to conflict with existing declarations when compiling against other LibC's. The build on OpenBSD is broken for this reason at the moment. Lets rename the members to more generic names to resolve the situation.
Diffstat (limited to 'Userland/Libraries/LibCore/Command.h')
-rw-r--r--Userland/Libraries/LibCore/Command.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/Command.h b/Userland/Libraries/LibCore/Command.h
index 8a19986c37..a3680a5962 100644
--- a/Userland/Libraries/LibCore/Command.h
+++ b/Userland/Libraries/LibCore/Command.h
@@ -17,8 +17,8 @@ namespace Core {
struct CommandResult {
int exit_code { 0 };
- String stdout;
- String stderr;
+ String output;
+ String error;
};
ErrorOr<CommandResult> command(String const& program, Vector<String> const& arguments, Optional<LexicalPath> chdir);