From: Tomek Mrugalski Date: Thu, 11 Oct 2012 12:30:28 +0000 (+0200) Subject: [2269] Typo fixed. X-Git-Tag: trac2402_base~17^2~10^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=028bed9014b15facf1a29d3d4a822c9d14fc6411;p=thirdparty%2Fkea.git [2269] Typo fixed. --- diff --git a/src/bin/dhcp6/config_parser.cc b/src/bin/dhcp6/config_parser.cc index 9f75cd72f5..dbffc40863 100644 --- a/src/bin/dhcp6/config_parser.cc +++ b/src/bin/dhcp6/config_parser.cc @@ -361,9 +361,9 @@ public: // are allowed string txt = text_pool->stringValue(); - // first let's remove any spaces or tabs - boost::erase_all(txt, " "); - boost::erase_all(txt, "\t"); + // first let's remove any whitespaces + boost::erase_all(txt, " "); // space + boost::erase_all(txt, "\t"); // tabulation // Is this prefix/len notation? size_t pos = txt.find("/"); @@ -373,7 +373,7 @@ public: try { addr = IOAddress(txt.substr(0, pos)); - // start with the first charater after / + // start with the first character after / string prefix_len = txt.substr(pos + 1); // It is lexical cast to int and then downcast to uint8_t.