fix style

This commit is contained in:
Yakov Olkhovskiy 2022-08-24 21:28:52 +00:00
parent 6afd9c176b
commit f043d03053

View File

@ -372,7 +372,7 @@ uint32_t get_inode(const char * self)
for (std::string line; std::getline(maps, line); )
{
std::stringstream ss(line);
std::stringstream ss(line); // STYLE_CHECK_ALLOW_STD_STRING_STREAM
std::string addr, mode, offset, id, path;
uint32_t inode = 0;
if (ss >> addr >> mode >> offset >> id >> inode >> path && path == self)
@ -412,7 +412,7 @@ int main(int/* argc*/, char* argv[])
return 1;
}
std::stringstream lock_path;
std::stringstream lock_path; // STYLE_CHECK_ALLOW_STD_STRING_STREAM
lock_path << "/tmp/" << name << ".decompression." << inode << ".lock";
int lock = open(lock_path.str().c_str(), O_CREAT | O_RDWR, 0666);
if (lock < 0)