Skip to content

Commit bf25307

Browse files
committed
crimson: admin: fix FTBFS with gcc 15
replace stdout and stderr variable names in src/crimson/admin/admin_socket.cc with names that do not clash with the global constant pointers Fixes: https://tracker.ceph.com/issues/73291 Signed-off-by: Duncan Bellamy <[email protected]>
1 parent f42d7db commit bf25307

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/crimson/admin/admin_socket.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ seastar::future<> AdminSocket::execute_line(std::string cmdline,
155155
LOG_PREFIX(AdminSocket::execute_line);
156156
INFO("");
157157
return execute_command({std::move(cmdline)}, {}).then([FNAME, &out, this](auto result) {
158-
auto [ret, stderr, stdout] = std::move(result);
158+
auto [ret, err_out, out_str] = std::move(result);
159159
if (ret < 0) {
160160
ERROR("{}", cpp_strerror(ret));
161-
stdout.append(fmt::format("ERROR: {}\n", cpp_strerror(ret)));
162-
stdout.append(stderr);
161+
out_str.append(fmt::format("ERROR: {}\n", cpp_strerror(ret)));
162+
out_str.append(err_out);
163163
}
164164
DEBUG("finalizing response");
165-
return finalize_response(out, std::move(stdout));
165+
return finalize_response(out, std::move(out_str));
166166
});
167167
}
168168

0 commit comments

Comments
 (0)