X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fdetail%2FIPAddress.h;h=8b2c58675be90e0c8113167930bde5b7009648bf;hb=b2ae6ce3b6fc237e85cc988ad4a47a8453250b88;hp=bc13a2ecb5ea4910474227c43e30e6d68e9b2ec8;hpb=520e20a8baebc98a5ec84d67865da4cf9819f88a;p=folly.git diff --git a/folly/detail/IPAddress.h b/folly/detail/IPAddress.h index bc13a2ec..8b2c5867 100644 --- a/folly/detail/IPAddress.h +++ b/folly/detail/IPAddress.h @@ -22,7 +22,8 @@ #include -namespace folly { namespace detail { +namespace folly { +namespace detail { std::string familyNameStrDefault(sa_family_t family); @@ -49,8 +50,8 @@ getNthMSBitImpl(const IPAddrType& ip, size_t bitIndex, sa_family_t family) { if (bitIndex >= ip.bitCount()) { getNthMSBitImplThrow(ip.bitCount(), family); } - //Underlying bytes are in n/w byte order + // Underlying bytes are in n/w byte order return (ip.getNthMSByte(bitIndex / 8) & (0x80 >> (bitIndex % 8))) != 0; } - -}} // folly::detail +} // namespace detail +} // namespace folly