mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-24 20:07:40 +02:00
Reformat source
This commit is contained in:
parent
d4bdbc3844
commit
f5e75453ea
2 changed files with 13 additions and 17 deletions
|
@ -72,12 +72,10 @@ namespace strutils = utils::string;
|
|||
#ifndef WINDOWS
|
||||
static std::string execGetOutput(const std::string& cmd)
|
||||
{
|
||||
std::shared_ptr<::FILE> pipe(popen((cmd + " 2> /dev/null").c_str(), "r"),
|
||||
[](::FILE* stream)
|
||||
{
|
||||
if (stream != nullptr)
|
||||
pclose(stream);
|
||||
});
|
||||
std::shared_ptr<::FILE> pipe(popen((cmd + " 2> /dev/null").c_str(), "r"), [](::FILE* stream) {
|
||||
if (stream != nullptr)
|
||||
pclose(stream);
|
||||
});
|
||||
if (!pipe)
|
||||
return "";
|
||||
char buffer[1024];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue