aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rds-ctl/rds-ctl.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-26 20:14:51 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-03 12:23:02 +0200
commit3e73d62b91c9997cef9739eb0220e2789b8e824f (patch)
tree9200889769650de54e170dadb7bc67c9755926fc /utils/rds-ctl/rds-ctl.cpp
parentb14f60cfcc37a61650e78c4f39143ec61b55a9b4 (diff)
use auto
Found with modernize-use-auto Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/rds-ctl/rds-ctl.cpp')
-rw-r--r--utils/rds-ctl/rds-ctl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rds-ctl/rds-ctl.cpp b/utils/rds-ctl/rds-ctl.cpp
index e69a498d..12ec8bae 100644
--- a/utils/rds-ctl/rds-ctl.cpp
+++ b/utils/rds-ctl/rds-ctl.cpp
@@ -346,7 +346,7 @@ static dev_vec list_devices()
/* Iterate through all devices, and remove all non-accessible devices
* and all devices that don't offer the RDS_BLOCK_IO capability */
- for (dev_vec::iterator iter = files.begin();
+ for (auto iter = files.begin();
iter != files.end();) {
int fd = open(iter->c_str(), O_RDONLY | O_NONBLOCK);
std::string bus_info;

Privacy Policy