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

Commit 139913a0 authored by Devin Moore's avatar Devin Moore
Browse files

libbinder: use flexible array member instead of 0 sized array

Having an array at the end of a struct without a size is defined as a
flexible array member. Using a size of zero is not defined by the
language.

Test: atest binderRpcTest
Change-Id: Iaec4ea3b636f218957dd70cb36c84ba04bcb8a0e
parent 1291f27a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,12 +115,12 @@ struct RpcWireTransaction {

    uint32_t reserved[4];

    uint8_t data[0];
    uint8_t data[];
};

struct RpcWireReply {
    int32_t status; // transact return
    uint8_t data[0];
    uint8_t data[];
};

#pragma clang diagnostic pop