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

Commit ba11b8e4 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

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

am: c49d21f9

* commit 'c49d21f9':
  Fix misc-macro-parentheses warnings in common_time.

Change-Id: Id0a364de6bbd776dc01cc5298a4a38f62b491020
parents ca3f49d5 c49d21f9
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)