From: Mukund Sivaraman Date: Mon, 23 Jul 2012 05:33:25 +0000 (+0530) Subject: [2124] Indent code according to our coding style X-Git-Tag: trac2351_base~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=045ede28af3d51c72a5333bd8069d90c3e91a46f;p=thirdparty%2Fkea.git [2124] Indent code according to our coding style --- diff --git a/src/lib/dns/rdata/generic/sshfp_44.cc b/src/lib/dns/rdata/generic/sshfp_44.cc index 5d65b003c6..b4eec5829e 100644 --- a/src/lib/dns/rdata/generic/sshfp_44.cc +++ b/src/lib/dns/rdata/generic/sshfp_44.cc @@ -37,7 +37,7 @@ using namespace isc::util::encode; SSHFP::SSHFP(InputBuffer& buffer, size_t rdata_len) { if (rdata_len < 2) { - isc_throw(InvalidRdataLength, "SSHFP record too short"); + isc_throw(InvalidRdataLength, "SSHFP record too short"); } algorithm_ = buffer.readUint8(); @@ -57,12 +57,12 @@ SSHFP::SSHFP(const std::string& sshfp_str) { iss >> algorithm >> fingerprint_type; if (iss.bad() || iss.fail()) { - isc_throw(InvalidRdataText, "Invalid SSHFP text"); + isc_throw(InvalidRdataText, "Invalid SSHFP text"); } iss.read(&peekc, 1); if (!iss.good() || !isspace(peekc, iss.getloc())) { - isc_throw(InvalidRdataText, "SSHFP presentation format error"); + isc_throw(InvalidRdataText, "SSHFP presentation format error"); } iss >> &fingerprintbuf; @@ -131,10 +131,10 @@ SSHFP::compare(const Rdata& other) const { size_t cmplen = min(this_len, other_len); int cmp = memcmp(&fingerprint_[0], &other_sshfp.fingerprint_[0], cmplen); if (cmp != 0) { - return (cmp); + return (cmp); } else { - return ((this_len == other_len) - ? 0 : (this_len < other_len) ? -1 : 1); + return ((this_len == other_len) + ? 0 : (this_len < other_len) ? -1 : 1); } }