diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-01-05 16:01:46 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-01-05 16:01:46 +0000 |
| commit | 4db349c1f32b4a313d12d114137432441633d00a (patch) | |
| tree | 417451971e264834312cfd8339c79930d680a5d1 /src/DHTRoutingTableDeserializer.cc | |
| parent | 338e8aca09331d3e7fa4e1e8e1f9d10260986772 (diff) | |
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Untabify. Fixed one line in copyright which is longer than 80
columns.
* src
* test
Diffstat (limited to 'src/DHTRoutingTableDeserializer.cc')
| -rw-r--r-- | src/DHTRoutingTableDeserializer.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/DHTRoutingTableDeserializer.cc b/src/DHTRoutingTableDeserializer.cc index 78f1ca1e..51691b82 100644 --- a/src/DHTRoutingTableDeserializer.cc +++ b/src/DHTRoutingTableDeserializer.cc @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the @@ -57,22 +57,22 @@ DHTRoutingTableDeserializer::DHTRoutingTableDeserializer() {} DHTRoutingTableDeserializer::~DHTRoutingTableDeserializer() {} static void readBytes(unsigned char* buf, size_t buflen, - std::istream& in, size_t readlen) + std::istream& in, size_t readlen) { assert(readlen <= buflen); in.read(reinterpret_cast<char*>(buf), readlen); } -#define CHECK_STREAM(in, length) \ - if(in.gcount() != length) { \ - throw DL_ABORT_EX \ - (StringFormat("Failed to load DHT routing table. cause:%s", \ - "Unexpected EOF").str()); \ - } \ - if(!in) { \ - throw DL_ABORT_EX \ - (StringFormat("Failed to load DHT routing table. cause:%s", \ - strerror(errno)).str()); \ +#define CHECK_STREAM(in, length) \ + if(in.gcount() != length) { \ + throw DL_ABORT_EX \ + (StringFormat("Failed to load DHT routing table. cause:%s", \ + "Unexpected EOF").str()); \ + } \ + if(!in) { \ + throw DL_ABORT_EX \ + (StringFormat("Failed to load DHT routing table. cause:%s", \ + strerror(errno)).str()); \ } void DHTRoutingTableDeserializer::deserialize(std::istream& in) @@ -118,7 +118,7 @@ void DHTRoutingTableDeserializer::deserialize(std::istream& in) } else { throw DL_ABORT_EX (StringFormat("Failed to load DHT routing table. cause:%s", - "bad header").str()); + "bad header").str()); } uint32_t temp32; |
