Mercurial > minori
diff dep/animia/src/fd/linux.cc @ 148:aa4df5a84338
dep/animia: use std::pair instead of std::tuple
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 14 Nov 2023 13:27:13 -0500 |
parents | 8e9b71970bda |
children | ffa535b6d630 |
line wrap: on
line diff
--- a/dep/animia/src/fd/linux.cc Tue Nov 14 13:19:40 2023 -0500 +++ b/dep/animia/src/fd/linux.cc Tue Nov 14 13:27:13 2023 -0500 @@ -124,7 +124,7 @@ return true; } -bool LinuxFdTools::EnumerateOpenFiles(const std::set<pid_t>& pids, std::vector<std::tuple<pid_t, std::string>>& files) { +bool LinuxFdTools::EnumerateOpenFiles(const std::set<pid_t>& pids, std::vector<std::pair<pid_t, std::string>>& files) { for (const auto& pid : pids) { const std::string path = PROC_LOCATION "/" + std::to_string(pid) + "/fd";