Skip to content

Commit

Permalink
Refs #22427: Fix build in Ubuntu24
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Jan 15, 2025
1 parent bccd7b6 commit 6f8ddb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fds/CliDiscoveryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ std::string CliDiscoveryManager::exec_command(
{
std::array<char, 128> buffer;
std::string result;
std::unique_ptr<FILE, decltype(& pclose)> pipe(popen(command.c_str(), "r"), pclose);
std::unique_ptr<FILE, int(*)(FILE*)> pipe(popen(command.c_str(), "r"), pclose);
if (!pipe)
{
EPROSIMA_LOG_ERROR(CLI, "Error processing command:" << command);
Expand Down

0 comments on commit 6f8ddb5

Please sign in to comment.