diff -r 14f634f5b613 -r 0cee1fb7f0fd tool/CommandGraph.cpp --- a/tool/CommandGraph.cpp Thu Mar 11 15:03:52 2010 +0100 +++ b/tool/CommandGraph.cpp Thu Mar 11 15:17:25 2010 +0100 @@ -67,7 +67,6 @@ void CommandGraph::execute(const StringVector &args) { - MasterIndexList masterIndices; ec_ioctl_master_t master; unsigned int i; typedef vector SlaveVector; @@ -91,13 +90,7 @@ throwInvalidUsageException(err); } - masterIndices = getMasterIndices(); - if (masterIndices.size() != 1) { - stringstream err; - err << getName() << " requires to select a single master!"; - throwInvalidUsageException(err); - } - MasterDevice m(masterIndices.front()); + MasterDevice m(getSingleMasterIndex()); m.open(MasterDevice::Read); m.getMaster(&master);