* Was using wide char std::isspace version by mistake.

* More cleanup of old option code.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@910 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-06-09 21:48:13 +00:00
parent 8a1220fd5b
commit 64e1d1f440
9 changed files with 91 additions and 124 deletions
+2 -1
View File
@@ -55,6 +55,7 @@
#include "ui/root.h"
#include "utils/command_slot.h"
#include "utils/command_variable.h"
#include "utils/parse.h"
#include "utils/variable_map.h"
#include "globals.h"
@@ -115,7 +116,7 @@ apply_tos(const torrent::Object& rawArg) {
else if (arg == "mincost")
value = torrent::ConnectionManager::iptos_mincost;
else if (!utils::Variable::string_to_value_unit_nothrow(arg.c_str(), &value, 16, 1))
else if (!utils::parse_whole_value_nothrow(arg.c_str(), &value, 16, 1))
throw torrent::input_error("Invalid TOS identifier.");
cm->set_priority(value);