Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce685d90 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Merge "Fix misc-macro-parentheses warnings in common_time." am:...

Merge "Merge "Merge "Fix misc-macro-parentheses warnings in common_time." am: c49d21f9 am: ba11b8e4" into nyc-dev-plus-aosp am: e60c649a" into nyc-mr1-dev-plus-aosp
parents a6954bc5 c4c8ecfb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */,
+6 −6
Original line number Diff line number Diff line
@@ -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)