summaryrefslogtreecommitdiff
path: root/src/BtSetup.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-06-04 23:21:01 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-06-04 23:21:01 +0900
commitc0e4381780ae05969aea56a1a11f598f5edce3d8 (patch)
treef780e5ca0b5d693e43df549d47accd8ac9f15010 /src/BtSetup.cc
parent007b890fe4d61f3f2cf26dce9f466b3b0fc709d2 (diff)
util::parseIntSegments: Return SegList<int>
Diffstat (limited to 'src/BtSetup.cc')
-rw-r--r--src/BtSetup.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BtSetup.cc b/src/BtSetup.cc
index 00e34f9e..5f7186cf 100644
--- a/src/BtSetup.cc
+++ b/src/BtSetup.cc
@@ -195,8 +195,8 @@ void BtSetup::setup(std::vector<std::unique_ptr<Command>>& commands,
sgl.add(usedPort, usedPort+1);
ret = command->bindPort(port, sgl);
} else {
- SegList<int> sgl;
- util::parseIntSegments(sgl, e->getOption()->get(PREF_LISTEN_PORT));
+ auto sgl = util::parseIntSegments
+ (e->getOption()->get(PREF_LISTEN_PORT));
sgl.normalize();
ret = command->bindPort(port, sgl);
}