Loading libs/common_time/common_time_server_api.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -285,7 +285,7 @@ void CommonTimeServer::reevaluateAutoDisableState(bool commonClockHasClients) { if (res > 0) \ write(fd, buffer, res); \ } while (0) #define checked_percentage(a, b) ((0 == b) ? 0.0f : ((100.0f * a) / b)) #define checked_percentage(a, b) ((0 == (b)) ? 0.0f : ((100.0f * (a)) / (b))) status_t CommonTimeServer::dumpClockInterface(int fd, const Vector<String16>& /* args */, Loading libs/common_time/common_time_server_packets.cpp +6 −6 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ const uint16_t TimeServicePacketHeader::kCurVersion = 1; do { \ if ((offset + sizeof(field_name)) > length) \ return -1; \ field_name = converter(*((type*)(data + offset))); \ (field_name) = converter(*((type*)(data + offset))); \ offset += sizeof(field_name); \ } while (0) #define DESERIALIZE_INT16(field_name) DESERIALIZE_FIELD(field_name, int16_t, ntohs) Loading Loading
libs/common_time/common_time_server_api.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -285,7 +285,7 @@ void CommonTimeServer::reevaluateAutoDisableState(bool commonClockHasClients) { if (res > 0) \ write(fd, buffer, res); \ } while (0) #define checked_percentage(a, b) ((0 == b) ? 0.0f : ((100.0f * a) / b)) #define checked_percentage(a, b) ((0 == (b)) ? 0.0f : ((100.0f * (a)) / (b))) status_t CommonTimeServer::dumpClockInterface(int fd, const Vector<String16>& /* args */, Loading
libs/common_time/common_time_server_packets.cpp +6 −6 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ const uint16_t TimeServicePacketHeader::kCurVersion = 1; do { \ if ((offset + sizeof(field_name)) > length) \ return -1; \ field_name = converter(*((type*)(data + offset))); \ (field_name) = converter(*((type*)(data + offset))); \ offset += sizeof(field_name); \ } while (0) #define DESERIALIZE_INT16(field_name) DESERIALIZE_FIELD(field_name, int16_t, ntohs) Loading